Collection

This endpoint is used to manager collection inside an organization.

Entity fields:

Path
Type
Description

data.type

string

Should be "step"

data.attributes.description

string

Collection description

data.attributes.name

string

Collection name

data.attributes.priority

int

Collection priority

Example:

POST /api/v1/organization/${ORGANIZATION_ID}/collection/

{
    "data": {
        "type": "collection",
        "attributes": {
            "description": "Sample Description",
            "name": "Collection1",
            "priority": 10,
        }
}

Supported Operation

get

Returns the relationship collection

Path parameters
organizationIdstringRequired

organization Identifier

Query parameters
filter[collection]stringOptional

Filters the collection of collection using a 'disjoint' RSQL expression

page[number]integer · int32Optional

Number of pages to return. Can be used with page[size]

page[size]integer · int32Optional

Number of elements per page. Can be used with page[number]

page[offset]integer · int32Optional

Offset from 0 to start paginating. Can be used with page[limit]

page[limit]integer · int32Optional

Maximum number of items to return. Can be used with page[offset]

page[totals]stringOptional

For requesting total pages/records be included in the response page meta data

Responses
get
/organization/{organizationId}/collection
200

Successful response

post

Creates an item of type collection and adds it to collection

Path parameters
organizationIdstringRequired

organization Identifier

Body
Responses
201

Successful response

application/vnd.api+json
post
/organization/{organizationId}/collection
201

Successful response

get

Returns an instance of type collection

Path parameters
organizationIdstringRequired

organization Identifier

collectionIdstringRequired

collection Identifier

Query parameters
Responses
get
/organization/{organizationId}/collection/{collectionId}
200

Successful response

delete

Deletes an instance of type collection

Path parameters
organizationIdstringRequired

organization Identifier

collectionIdstringRequired

collection Identifier

Responses
delete
/organization/{organizationId}/collection/{collectionId}
204

Successful response

No content

patch

Modifies an instance of type collection

Path parameters
organizationIdstringRequired

organization Identifier

collectionIdstringRequired

collection Identifier

Body
Responses
patch
/organization/{organizationId}/collection/{collectionId}
204

Successful response

No content

Last updated

Was this helpful?