Download OpenAPI specification:Download
Agent API Schema
By passing in query string, user can get available persons authorised
filter[rsql] | string pass an optional search string for looking up the persons |
sort | string optional sort order string, such as descending, denoted by "-" |
page[offset] | integer <int32> number of records to skip when paging |
page[limit] | integer <int32> [ 0 .. 50 ] maximum number of records to return when paging |
[- {
- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "person",
- "attributes": {
- "displayName": "test user",
- "email": "test@canada.ca",
- "createdBy": "test user",
- "createdOn": "1985-04-12T23:20:50.52Z",
- "givenNames": "Jane",
- "familyNames": "Doe",
- "remarks": "this is a mock remark",
- "aliases": [
- "Jane Roe",
- "Janie Doe"
]
}, - "relationships": {
- "organizations": {
- "data": [
- {
- "type": "organization",
- "id": "a600f9da-fcbe-4fef-9ae3-0f131ca05e0c"
}
]
}, - "identifiers": {
- "data": [
- {
- "type": "identifier",
- "id": "a600f9da-fcbe-4fef-9ae3-0f131ca05e0c"
}
]
}
}
}
}
]
Add a person
Person to add
required | object |
{- "data": {
- "type": "person",
- "attributes": {
- "displayName": "test user",
- "email": "test@canada.ca",
- "givenNames": "Jane",
- "familyNames": "Doe",
- "remarks": "this is a mock remark",
- "aliases": [
- "Jane Roe",
- "Janie Doe"
]
}, - "relationships": {
- "organizations": {
- "data": [
- {
- "type": "organization",
- "id": "a600f9da-fcbe-4fef-9ae3-0f131ca05e0c"
}
]
}, - "identifiers": {
- "data": [
- {
- "type": "identifier",
- "id": "a600f9da-fcbe-4fef-9ae3-0f131ca05e0c"
}
]
}
}
}
}
Return a single person
Id required | string <uuid> ID of person to return |
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "person",
- "attributes": {
- "displayName": "test user",
- "email": "test@canada.ca",
- "createdBy": "test user",
- "createdOn": "1985-04-12T23:20:50.52Z",
- "givenNames": "Jane",
- "familyNames": "Doe",
- "remarks": "this is a mock remark",
- "aliases": [
- "Jane Roe",
- "Janie Doe"
]
}, - "relationships": {
- "organizations": {
- "data": [
- {
- "type": "organization",
- "id": "a600f9da-fcbe-4fef-9ae3-0f131ca05e0c"
}
]
}, - "identifiers": {
- "data": [
- {
- "type": "identifier",
- "id": "a600f9da-fcbe-4fef-9ae3-0f131ca05e0c"
}
]
}
}
}
}
Update a person
Id required | string <uuid> person id to patch |
person to add
required | object |
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "person",
- "attributes": {
- "displayName": "test user",
- "email": "test@canada.ca",
- "givenNames": "Jane",
- "familyNames": "Doe",
- "remarks": "this is a mock remark",
- "aliases": [
- "Jane Roe",
- "Janie Doe"
]
}, - "relationships": {
- "organizations": {
- "data": [
- {
- "type": "organization",
- "id": "a600f9da-fcbe-4fef-9ae3-0f131ca05e0c"
}
]
}, - "identifiers": {
- "data": [
- {
- "type": "identifier",
- "id": "a600f9da-fcbe-4fef-9ae3-0f131ca05e0c"
}
]
}
}
}
}
By passing in query string, user can get available identifiers authorised
filter[rsql] | string pass an optional search string for looking up the persons |
sort | string optional sort order string, such as descending, denoted by "-" |
page[offset] | integer <int32> number of records to skip when paging |
page[limit] | integer <int32> [ 0 .. 50 ] maximum number of records to return when paging |
[- {
- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "identifier",
- "attributes": {
- "namespace": "wikidata",
- "createdBy": "test user",
- "createdOn": "1985-04-12T23:20:50.52Z"
}
}
}
]
Return a single identifier
Id required | string <uuid> ID of the Identifier to return |
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "identifier",
- "attributes": {
- "namespace": "wikidata",
- "createdBy": "test user",
- "createdOn": "1985-04-12T23:20:50.52Z"
}
}
}
Update a identifier
Id required | string <uuid> Identifier id to patch |
Identifier to add
required | object |
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "identifier",
}
}
By passing in query string, user can get available Organizations authorised
filter[rsql] | string pass an optional search string for looking up the Organizations |
sort | string optional sort order string, such as descending, denoted by "-" |
page[offset] | integer <int32> number of records to skip when paging |
page[limit] | integer <int32> [ 0 .. 50 ] maximum number of records to return when paging |
[- {
- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "organization",
- "attributes": {
- "names": [
- {
- "languageCode": "EN",
- "name": "World Wide Fund for Nature"
}, - {
- "languageCode": "FR",
- "name": "Fonds mondial pour la nature"
}
], - "aliases": [
- "WWF",
- "World Wide Fund for Nature"
], - "createdBy": "test user",
- "createdOn": "1985-04-12T23:20:50.52Z"
}
}
}
]
Add an organization
Organization to add
required | object |
{- "data": {
- "type": "organization",
- "attributes": {
- "names": [
- {
- "languageCode": "EN",
- "name": "World Wide Fund for Nature"
}, - {
- "languageCode": "FR",
- "name": "Fonds mondial pour la nature"
}
], - "aliases": [
- "WWF",
- "World Wide Fund for Nature"
]
}
}
}
Return a single organization
Id required | string <uuid> ID of organization to return |
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "organization",
- "attributes": {
- "names": [
- {
- "languageCode": "EN",
- "name": "World Wide Fund for Nature"
}, - {
- "languageCode": "FR",
- "name": "Fonds mondial pour la nature"
}
], - "aliases": [
- "WWF",
- "World Wide Fund for Nature"
], - "createdBy": "test user",
- "createdOn": "1985-04-12T23:20:50.52Z"
}
}
}
Update an organization
Id required | string <uuid> organization id to patch |
organization to add
required | object |
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "organization",
- "attributes": {
- "names": [
- {
- "languageCode": "EN",
- "name": "World Wide Fund for Nature"
}, - {
- "languageCode": "FR",
- "name": "Fonds mondial pour la nature"
}
], - "aliases": [
- "WWF",
- "World Wide Fund for Nature"
]
}
}
}