API OperoFormularze obiektów własnych
Pobierz formularz obiektu własnego
Zwraca jeden kontrakt formularza, w tym obsługiwane typy i metadane dostępności przypisanego układu.
Autoryzacja
api-token AutoryzacjaBearer <token>
Token Opero API. Przekaż go jako Authorization: Bearer ek_...
In: header
Parametry ścieżki
moduleKey*tekst
objectKey*tekst
formId*tekst
Treść odpowiedzi
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/custom-modules/string/objects/string/forms/string"{ "data": { "id": "string", "presentationConsumerId": "string", "name": "string", "publicToken": "string", "types": [ "VIEW" ], "availableTypes": [ "VIEW" ], "accessSources": [ "ALL_MEMBERS" ], "layoutAvailability": { "property1": { "state": "PUBLISHED", "layoutId": "string", "versionId": "string" }, "property2": { "state": "PUBLISHED", "layoutId": "string", "versionId": "string" } }, "usableTypes": [ "VIEW" ], "layoutWarnings": [ { "type": "VIEW", "code": "LAYOUT_MISSING", "message": "string", "meta": {} } ], "editor": { "ownerKind": "DYNAMIC_FORM", "ownerId": "string", "consumerId": "string", "name": "string", "status": "DRAFT", "layoutId": "string", "currentVersionId": "string", "latestDraftVersionId": "string", "capabilities": [ { "runtimeScope": "ORGANIZATION", "capability": "CREATE" } ], "renderModes": [ "string" ], "catalogProfile": "string", "domainContext": { "kind": "DYNAMIC_FORM", "formId": "string", "moduleKey": "string", "objectKey": "string", "formTypes": [ "VIEW" ] } }, "isActive": true, "isPublic": true, "config": {}, "objectId": "string", "organizationId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}{ "error": { "code": "NOT_FOUND", "message": "Resource not found", "meta": { "partiallyApplied": true, "failedPhase": "defaultForms", "committedObjects": [ { "id": "5e2af9bc-be0b-4ad8-af57-e8319fb115d3", "key": "session", "created": true } ], "fieldsWritten": 1, "fieldsDeleted": 0 }, "fieldErrors": { "name": [ "Field \"name\" is required" ] }, "unavailableMutationScopes": [ "contractor.bankAccounts" ], "clientMutationId": "019f2e3a-7c8b-7a33-9fc8-90db2b5b1e50", "relationTableErrors": {}, "idempotencyConflict": {}, "errors": [ { "message": "relation \"foo\" does not exist" } ], "impacts": [ {} ], "validation": {} }}{ "error": { "code": "NOT_FOUND", "message": "Resource not found", "meta": { "partiallyApplied": true, "failedPhase": "defaultForms", "committedObjects": [ { "id": "5e2af9bc-be0b-4ad8-af57-e8319fb115d3", "key": "session", "created": true } ], "fieldsWritten": 1, "fieldsDeleted": 0 }, "fieldErrors": { "name": [ "Field \"name\" is required" ] }, "unavailableMutationScopes": [ "contractor.bankAccounts" ], "clientMutationId": "019f2e3a-7c8b-7a33-9fc8-90db2b5b1e50", "relationTableErrors": {}, "idempotencyConflict": {}, "errors": [ { "message": "relation \"foo\" does not exist" } ], "impacts": [ {} ], "validation": {} }}{ "error": { "code": "NOT_FOUND", "message": "Resource not found", "meta": { "partiallyApplied": true, "failedPhase": "defaultForms", "committedObjects": [ { "id": "5e2af9bc-be0b-4ad8-af57-e8319fb115d3", "key": "session", "created": true } ], "fieldsWritten": 1, "fieldsDeleted": 0 }, "fieldErrors": { "name": [ "Field \"name\" is required" ] }, "unavailableMutationScopes": [ "contractor.bankAccounts" ], "clientMutationId": "019f2e3a-7c8b-7a33-9fc8-90db2b5b1e50", "relationTableErrors": {}, "idempotencyConflict": {}, "errors": [ { "message": "relation \"foo\" does not exist" } ], "impacts": [ {} ], "validation": {} }}{ "error": { "code": "NOT_FOUND", "message": "Resource not found", "meta": { "partiallyApplied": true, "failedPhase": "defaultForms", "committedObjects": [ { "id": "5e2af9bc-be0b-4ad8-af57-e8319fb115d3", "key": "session", "created": true } ], "fieldsWritten": 1, "fieldsDeleted": 0 }, "fieldErrors": { "name": [ "Field \"name\" is required" ] }, "unavailableMutationScopes": [ "contractor.bankAccounts" ], "clientMutationId": "019f2e3a-7c8b-7a33-9fc8-90db2b5b1e50", "relationTableErrors": {}, "idempotencyConflict": {}, "errors": [ { "message": "relation \"foo\" does not exist" } ], "impacts": [ {} ], "validation": {} }}