v1

latestOpenAPI 3.0.12026-07-1431191129.7 KB
Resources

Create a resource in the registry

Create a resource in the registry.

post/sources/{sourceKey}/v1/resources/{resourceType}

Path parameters

sourceKeystring required

The key of the source.

resourceTypestring required

Type of the resource. Key of the profile.

Request body

idstring

Id of the resource (optional). When not provided or equal to the special @rootId token, the id will be generated. When provided and not equal to @rootId, id must follow pattern: ^[a-zA-Z0-9-][\w-]{1,92}$. Note:

  • @rootId token can be used in any properties of type reference and, when provided, will be replaced by the actual id of the created resource.
dataobject required

Dynamic data attributes, based on the resource type.

containedobject

Resources contained in this top-level resource. Contained resources exists only within the context of this top-level resource.

Response

A successful response when the resource was created.

OR