Adds one or more assets to a given record.
Scope | records |
App Type | Agency |
Authorization Type | Access token |
URI | /v4/records/{recordId}/assets?lang={lang}&limit={limit}&offset={offset}&fields={fields} |
HTTP Method | POST |
Automation Version(s) | 9.0.0 |
Field or Parameter | Type | Required | Values | Description | Automation Version |
---|---|---|---|---|---|
fields | string | No | Comma-delimited names of fields to be returned in the response. Note: Field names are case-sensitive and only first-level fields are supported. Invalid field names are ignored. | 9.0.0 | |
lang | String | No | Indicates the language applied. | 9.0.0 | |
limit | long | No | Indicates the number of items that are returned in each page. | 9.0.0 | |
offset | long | No | Indicates the offset start of each page by the number specified. | 9.0.0 | |
recordId | string | No | Get All Records Search Records Get My Records | The unique ID associated with a record. | 9.0.0 |
assetIds[] | string | No | Get All Assets | An array of asset IDs to be linked to the record. | 9.0.0 |
Field | Type | Description | Automation Version |
---|---|---|---|
result[] | result{} | 9.0.0 | |
result.code | string | A code identifying an associated item | 9.0.0 |
result.id | string | The unique identifier for the object, assigned by the Civic Platform server and provided in a response. | 9.0.0 |
result.isSuccess | boolean | Indicates whether or not the operation on the item is successful. | 9.0.0 |
result.message | string | A text message related to the operation. | 9.0.0 |
status | integer | The request status. | 9.0.0 |