Download OpenAPI specification:
Welcome to Synerise API Reference! We hope that you'll enjoy your stay here.
If you need help with our services, feel free to contact us at [email protected].
Retrieve the details of a schema.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_SCHEMAS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
curl --request GET \ --url https://api.synerise.com/brickworks/v1/schemas/%7BSchemaAppId%7D \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "appId": "string",
- "displayName": "string",
- "description": "string",
- "fields": {
- "type": "object",
- "properties": {
- "property1": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}, - "property2": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}
}, - "required": [
- "string"
], - "additionalProperties": true
}, - "displayConfiguration": {
- "ordering": {
- "property1": 0,
- "property2": 0
}, - "metadata": {
- "property1": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}, - "property2": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}
}
}, - "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "version": 0,
- "audience": {
- "targetType": "SEGMENT",
- "segments": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "query": "{\\\"analysis\\\":{\\\"title\\\":\\\"notempty\\\",\\\"segments\\\":[{\\\"title\\\":\\\"notempty\\\",\\\"filter\\\":{\\\"matching\\\":true,\\\"expressions\\\":[{\\\"type\\\":\\\"ATTRIBUTE\\\",\\\"attribute\\\":{\\\"expressions\\\":[{\\\"constraint\\\":{\\\"type\\\":\\\"BOOL\\\",\\\"logic\\\":\\\"IS_TRUE\\\"},\\\"attribute\\\":{\\\"type\\\":\\\"PARAM\\\",\\\"param\\\":\\\"exampleBool\\\"}}]}}]}}]}}"
}, - "schemaType": "SIMPLE"
}Retrieve the details of a schema.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_SCHEMAS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
curl --request GET \ --url https://api.synerise.com/brickworks/v1/schemas/%7BSchemaId%7D \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "appId": "string",
- "displayName": "string",
- "description": "string",
- "fields": {
- "type": "object",
- "properties": {
- "property1": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}, - "property2": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}
}, - "required": [
- "string"
], - "additionalProperties": true
}, - "displayConfiguration": {
- "ordering": {
- "property1": 0,
- "property2": 0
}, - "metadata": {
- "property1": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}, - "property2": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}
}
}, - "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "version": 0,
- "audience": {
- "targetType": "SEGMENT",
- "segments": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "query": "{\\\"analysis\\\":{\\\"title\\\":\\\"notempty\\\",\\\"segments\\\":[{\\\"title\\\":\\\"notempty\\\",\\\"filter\\\":{\\\"matching\\\":true,\\\"expressions\\\":[{\\\"type\\\":\\\"ATTRIBUTE\\\",\\\"attribute\\\":{\\\"expressions\\\":[{\\\"constraint\\\":{\\\"type\\\":\\\"BOOL\\\",\\\"logic\\\":\\\"IS_TRUE\\\"},\\\"attribute\\\":{\\\"type\\\":\\\"PARAM\\\",\\\"param\\\":\\\"exampleBool\\\"}}]}}]}}]}}"
}, - "schemaType": "SIMPLE"
}Update a schema.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_SCHEMAS_UPDATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
Schema properties to update
| displayName required | string (SchemaDisplayName) Schema name shown to users in the Synerise Portal |
| description | string (SchemaDescription) Schema description |
object (FieldsObject) The content of the schema. | |
object (SchemaDisplayConfiguration) The layout details of the schema | |
object (Audience) Definition of the profiles which can access content created from this schema. |
{- "displayName": "string",
- "description": "string",
- "fields": {
- "type": "object",
- "properties": {
- "property1": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}, - "property2": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}
}, - "required": [
- "string"
], - "additionalProperties": true
}, - "displayConfiguration": {
- "ordering": {
- "property1": 0,
- "property2": 0
}, - "metadata": {
- "property1": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}, - "property2": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}
}
}, - "audience": {
- "targetType": "SEGMENT",
- "segments": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "query": "{\\\"analysis\\\":{\\\"title\\\":\\\"notempty\\\",\\\"segments\\\":[{\\\"title\\\":\\\"notempty\\\",\\\"filter\\\":{\\\"matching\\\":true,\\\"expressions\\\":[{\\\"type\\\":\\\"ATTRIBUTE\\\",\\\"attribute\\\":{\\\"expressions\\\":[{\\\"constraint\\\":{\\\"type\\\":\\\"BOOL\\\",\\\"logic\\\":\\\"IS_TRUE\\\"},\\\"attribute\\\":{\\\"type\\\":\\\"PARAM\\\",\\\"param\\\":\\\"exampleBool\\\"}}]}}]}}]}}"
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "appId": "string",
- "displayName": "string",
- "description": "string",
- "fields": {
- "type": "object",
- "properties": {
- "property1": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}, - "property2": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}
}, - "required": [
- "string"
], - "additionalProperties": true
}, - "displayConfiguration": {
- "ordering": {
- "property1": 0,
- "property2": 0
}, - "metadata": {
- "property1": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}, - "property2": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}
}
}, - "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "version": 0,
- "audience": {
- "targetType": "SEGMENT",
- "segments": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "query": "{\\\"analysis\\\":{\\\"title\\\":\\\"notempty\\\",\\\"segments\\\":[{\\\"title\\\":\\\"notempty\\\",\\\"filter\\\":{\\\"matching\\\":true,\\\"expressions\\\":[{\\\"type\\\":\\\"ATTRIBUTE\\\",\\\"attribute\\\":{\\\"expressions\\\":[{\\\"constraint\\\":{\\\"type\\\":\\\"BOOL\\\",\\\"logic\\\":\\\"IS_TRUE\\\"},\\\"attribute\\\":{\\\"type\\\":\\\"PARAM\\\",\\\"param\\\":\\\"exampleBool\\\"}}]}}]}}]}}"
}, - "schemaType": "SIMPLE"
}Delete a schema.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_SCHEMAS_DELETE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
curl --request DELETE \ --url https://api.synerise.com/brickworks/v1/schemas/%7BSchemaId%7D \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "timestamp": "2019-08-24T14:15:22Z",
- "errorCode": "string",
- "httpStatus": 0,
- "message": "string",
- "traceId": "string",
- "errors": [
- { }
], - "source": {
- "pointer": "string",
- "value": "string"
}, - "details": {
- "property1": { },
- "property2": { }
}, - "field": "string"
}Retrieve a list of schemas. You can paginate the results, filter by schema type, and search for a phrase in schema names.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_SCHEMAS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| limit | integer <int32> Default: 50 Limit of items per page |
| page | integer <int32> >= 1 Default: 1 The number of the page to retrieve |
| search | string A string to search for in schema display names and app IDs |
| sortBy | string Default: "updatedAt:desc" Example: sortBy=name:asc You can change the default sorting. The sorting direction is selected by adding You can sort by:
If you're using an RSQL filter, you can also sort by:
|
| schemaTypes | string Enum: "SIMPLE" "VERSIONED" Comma-separated list of schema types to filter the results. By default, all types are retrieved. |
curl --request GET \ --url 'https://api.synerise.com/brickworks/v1/schemas?limit=SOME_INTEGER_VALUE&page=SOME_INTEGER_VALUE&search=SOME_STRING_VALUE&sortBy=name%3Aasc&schemaTypes=SOME_STRING_VALUE' \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "meta": {
- "links": [
- {
- "url": "string",
- "rel": "first"
}
], - "limit": 0,
- "count": 0
}, - "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "appId": "string",
- "displayName": "string",
- "description": "string",
- "fields": {
- "type": "object",
- "properties": {
- "property1": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}, - "property2": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}
}, - "required": [
- "string"
], - "additionalProperties": true
}, - "displayConfiguration": {
- "ordering": {
- "property1": 0,
- "property2": 0
}, - "metadata": {
- "property1": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}, - "property2": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}
}
}, - "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "version": 0,
- "audience": {
- "targetType": "SEGMENT",
- "segments": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "query": "{\\\"analysis\\\":{\\\"title\\\":\\\"notempty\\\",\\\"segments\\\":[{\\\"title\\\":\\\"notempty\\\",\\\"filter\\\":{\\\"matching\\\":true,\\\"expressions\\\":[{\\\"type\\\":\\\"ATTRIBUTE\\\",\\\"attribute\\\":{\\\"expressions\\\":[{\\\"constraint\\\":{\\\"type\\\":\\\"BOOL\\\",\\\"logic\\\":\\\"IS_TRUE\\\"},\\\"attribute\\\":{\\\"type\\\":\\\"PARAM\\\",\\\"param\\\":\\\"exampleBool\\\"}}]}}]}}]}}"
}, - "schemaType": "SIMPLE"
}
]
}Create a new schema
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_SCHEMAS_CREATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| appId required | string (SchemaAppId) App ID of the schema. This is used as the identifier of the schema and must be unique. This ID cannot be changed after the schema is created. |
| displayName required | string (SchemaDisplayName) Schema name shown to users in the Synerise Portal |
| description | string (SchemaDescription) Schema description |
object (FieldsObject) The content of the schema. | |
object (SchemaDisplayConfiguration) The layout details of the schema | |
object (Audience) Definition of the profiles which can access content created from this schema. | |
| isSimpleSchema | boolean Default: false Simple schemas don't allow versioning records. Versioned schemas let you save draft versions of a record, so you can work on editing it without affecting the currently published version of the record. |
{- "appId": "string",
- "displayName": "string",
- "description": "string",
- "fields": {
- "type": "object",
- "properties": {
- "property1": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}, - "property2": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}
}, - "required": [
- "string"
], - "additionalProperties": true
}, - "displayConfiguration": {
- "ordering": {
- "property1": 0,
- "property2": 0
}, - "metadata": {
- "property1": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}, - "property2": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}
}
}, - "audience": {
- "targetType": "SEGMENT",
- "segments": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "query": "{\\\"analysis\\\":{\\\"title\\\":\\\"notempty\\\",\\\"segments\\\":[{\\\"title\\\":\\\"notempty\\\",\\\"filter\\\":{\\\"matching\\\":true,\\\"expressions\\\":[{\\\"type\\\":\\\"ATTRIBUTE\\\",\\\"attribute\\\":{\\\"expressions\\\":[{\\\"constraint\\\":{\\\"type\\\":\\\"BOOL\\\",\\\"logic\\\":\\\"IS_TRUE\\\"},\\\"attribute\\\":{\\\"type\\\":\\\"PARAM\\\",\\\"param\\\":\\\"exampleBool\\\"}}]}}]}}]}}"
}, - "isSimpleSchema": false
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "appId": "string",
- "displayName": "string",
- "description": "string",
- "fields": {
- "type": "object",
- "properties": {
- "property1": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}, - "property2": {
- "type": "number",
- "subtype": "number",
- "minimum": 0.1,
- "maximum": 0.1,
- "unique": true,
- "searchable": true,
- "default": 0,
- "isConstantField": false
}
}, - "required": [
- "string"
], - "additionalProperties": true
}, - "displayConfiguration": {
- "ordering": {
- "property1": 0,
- "property2": 0
}, - "metadata": {
- "property1": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}, - "property2": {
- "title": "empty title",
- "description": "string",
- "useAsRecordName": false
}
}
}, - "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "version": 0,
- "audience": {
- "targetType": "SEGMENT",
- "segments": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "query": "{\\\"analysis\\\":{\\\"title\\\":\\\"notempty\\\",\\\"segments\\\":[{\\\"title\\\":\\\"notempty\\\",\\\"filter\\\":{\\\"matching\\\":true,\\\"expressions\\\":[{\\\"type\\\":\\\"ATTRIBUTE\\\",\\\"attribute\\\":{\\\"expressions\\\":[{\\\"constraint\\\":{\\\"type\\\":\\\"BOOL\\\",\\\"logic\\\":\\\"IS_TRUE\\\"},\\\"attribute\\\":{\\\"type\\\":\\\"PARAM\\\",\\\"param\\\":\\\"exampleBool\\\"}}]}}]}}]}}"
}, - "schemaType": "SIMPLE"
}Preview an object by sending field values.
When generating a preview, fields are only generated when you send their value or they have a default value. Values saved in the record are not used in the preview.
Some data is cached:
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordId required | string <uuid> Record ID |
| IdentifierType required | string Enum: "id" "uuid" "email" "custom_identify" Profile identifier type |
| identifierValue required | string Value of the profile identifier selected in |
| context | Array of strings (Context) List of context strings for a search query |
object (FieldContext) Additional context parameters used in recommendation and relation fields. | |
required | object (PreviewValues) The values for fields in the record, to be used when generating the preview. |
{- "identifierValue": "string",
- "context": [
- "mobile",
- "listing"
], - "fieldContext": {
- "property1": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}, - "property2": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}
}, - "values": {
- "property1": null,
- "property2": null
}
}{- "__slug": "string",
- "__recordVersion": 0,
- "__publishedAt": "2019-08-24T14:15:22Z",
- "__updatedAt": "2019-08-24T14:15:22Z",
- "__schemaId": "2e65eac3-65e7-4f52-a73f-f05393aaf4d6",
- "__id": "64891eb6-e4fa-4f98-a872-49b7669bd08f",
- "__schemaVersion": 0,
- "__createdAt": "2019-08-24T14:15:22Z",
- "additionalProperties": 0.1
}Retrieve records from a schema. You can paginate, sort, and refine the results. By default, the records are sorted by status (published > scheduled > draft > unpublished) and then by last update time.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
| limit | integer <int32> Default: 50 Limit of items per page |
| page | integer <int32> >= 1 Default: 1 The number of the page to retrieve |
| filters | string An RSQL query to filter the results. |
| search | string A string to search for in the values of fields that were configured as searchable in the schema. |
| sortBy | string Default: "updatedAt:desc" Example: sortBy=name:asc You can change the default sorting. The sorting direction is selected by adding You can sort by:
If you're using an RSQL filter, you can also sort by:
|
| ids | string Comma-separated list of IDs (in UUID format) to filter results through |
| statuses | string Enum: "PUBLISHED" "DRAFT" "UNPUBLISHED" "SCHEDULED" Comma-separated list of record statuses to filter the results. |
curl --request GET \ --url 'https://api.synerise.com/brickworks/v1/schemas/%7BSchemaId%7D/records?limit=SOME_INTEGER_VALUE&page=SOME_INTEGER_VALUE&filters=SOME_STRING_VALUE&search=SOME_STRING_VALUE&sortBy=name%3Aasc&ids=SOME_STRING_VALUE&statuses=SOME_STRING_VALUE' \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "meta": {
- "links": [
- {
- "url": "string",
- "rel": "first"
}
], - "limit": 0,
- "count": 0
}, - "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}
]
}Add a record to a schema.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_CREATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
Add record to schema by ID
| slug | string (RecordSlug) [ 6 .. 40 ] characters ^(?!__)[\w\-]+ Unique (within a schema) identifier of a record. Can't be a UUID. |
required | object (RecordValues) Values included in the record. Each key is the name of a field. The value must match the configuration of the field in the schema. Default values aren't explicitly saved in the record or shown in GET requests which retrieve the record, but are returned when an object is generated from the record. |
| status required | string (RecordStatus) Enum: "DRAFT" "SCHEDULED" "PUBLISHED" "UNPUBLISHED" Status of the record. When generating an object from a record, the last published version is used.
|
| actionOnSchedule | string (ScheduleType) Value: "PUBLISH" |
object (ScheduleEntry) Time when the record is published - for example, every Monday, from 12:00 to 14:00 | |
| name | string or null (RecordName) [ 1 .. 255 ] characters The name of the record. If not defined and there are no fields with |
{- "slug": "string",
- "values": {
- "property1": { },
- "property2": { }
}, - "status": "DRAFT",
- "actionOnSchedule": "PUBLISH",
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}, - "name": "string"
}{- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}Create a copy of a record. The name of the copy is {recordName} - copy
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_CREATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
| RecordId required | string <uuid> Record ID |
curl --request POST \ --url https://api.synerise.com/brickworks/v1/schemas/%7BSchemaId%7D/records/%7BRecordId%7D/duplicate \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}Retrieve a record. You can select the fields that you want to include in the response.
If the record has multiple versions in different publishing states, the first available version is returned according to publishing status priority:
statuses parameter to limit the lookup.API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordId required | string <uuid> Record ID |
| fields | Array of strings A comma-separated list of fields to retrieve. If not defined, all fields are included in the response. |
| statuses | string Enum: "PUBLISHED" "DRAFT" "UNPUBLISHED" "SCHEDULED" Comma-separated list of record statuses to filter the results. |
curl --request GET \ --url 'https://api.synerise.com/brickworks/v1/schemas/%7BSchemaAppId%7D/records/%7BRecordId%7D?fields=SOME_ARRAY_VALUE&statuses=SOME_STRING_VALUE' \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}Update a record.
In a versioned schema, you can't directly edit a published record. To make changes, update the status to DRAFT (you can include the other changes that you want to make). This creates a new version of the record (without modifying the currently published version), which you can edit and publish.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_UPDATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordId required | string <uuid> Record ID |
| status | string (RecordStatus) Enum: "DRAFT" "SCHEDULED" "PUBLISHED" "UNPUBLISHED" Status of the record. When generating an object from a record, the last published version is used.
|
object (RecordValues) Values included in the record. Each key is the name of a field. The value must match the configuration of the field in the schema. Default values aren't explicitly saved in the record or shown in GET requests which retrieve the record, but are returned when an object is generated from the record. | |
| actionOnSchedule | string (ScheduleType) Value: "PUBLISH" |
object (ScheduleEntry) Time when the record is published - for example, every Monday, from 12:00 to 14:00 | |
| slug | string (RecordSlug) [ 6 .. 40 ] characters ^(?!__)[\w\-]+ Unique (within a schema) identifier of a record. Can't be a UUID. |
| lastUpdatedAt | string <date-time> If updating a draft keeping the draft status, you can check if it was updated by another request in the meantime:
|
| name | string or null (RecordName) [ 1 .. 255 ] characters The name of the record. If not defined and there are no fields with |
| fromState | string (RecordStatus) Enum: "DRAFT" "SCHEDULED" "PUBLISHED" "UNPUBLISHED" Status of the record. When generating an object from a record, the last published version is used.
|
{- "status": "DRAFT",
- "values": {
- "property1": { },
- "property2": { }
}, - "actionOnSchedule": "PUBLISH",
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}, - "slug": "string",
- "lastUpdatedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "fromState": "DRAFT"
}{- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}Delete a record permanently. If you want to unpublish a record instead, send an update request to change the status to UNPUBLISHED
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_DELETE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordId required | string <uuid> Record ID |
curl --request DELETE \ --url https://api.synerise.com/brickworks/v1/schemas/%7BSchemaAppId%7D/records/%7BRecordId%7D \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "timestamp": "2019-08-24T14:15:22Z",
- "errorCode": "string",
- "httpStatus": 0,
- "message": "string",
- "traceId": "string",
- "errors": [
- { }
], - "source": {
- "pointer": "string",
- "value": "string"
}, - "details": {
- "property1": { },
- "property2": { }
}, - "field": "string"
}Preview an object by sending field values.
When generating a preview, fields are only generated when you send their value or they have a default value. Values saved in the record are not used in the preview.
Some data is cached:
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordSlug required | string [ 6 .. 40 ] characters Unique (within a schema) identifier of a record. May change between record versions. |
| IdentifierType required | string Enum: "id" "uuid" "email" "custom_identify" Profile identifier type |
| identifierValue required | string Value of the profile identifier selected in |
| context | Array of strings (Context) List of context strings for a search query |
object (FieldContext) Additional context parameters used in recommendation and relation fields. | |
required | object (PreviewValues) The values for fields in the record, to be used when generating the preview. |
{- "identifierValue": "string",
- "context": [
- "mobile",
- "listing"
], - "fieldContext": {
- "property1": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}, - "property2": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}
}, - "values": {
- "property1": null,
- "property2": null
}
}{- "__slug": "string",
- "__recordVersion": 0,
- "__publishedAt": "2019-08-24T14:15:22Z",
- "__updatedAt": "2019-08-24T14:15:22Z",
- "__schemaId": "2e65eac3-65e7-4f52-a73f-f05393aaf4d6",
- "__id": "64891eb6-e4fa-4f98-a872-49b7669bd08f",
- "__schemaVersion": 0,
- "__createdAt": "2019-08-24T14:15:22Z",
- "additionalProperties": 0.1
}This endpoint can only be used for simple schemas.
Asynchronous requests are processed according to the time they reach the service.
This means that requests to synchronous endpoints may overwrite asynchronous operations which were sent earlier and queued due to high traffic.
In some edge cases, changing a record may fail further in the backend, even when this endpoint returns no errors. In such cases, contact Support.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_CREATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
Record data
required | object Definition of a unique identifier of a record |
required | object (RecordValues) Values included in the record. Each key is the name of a field. The value must match the configuration of the field in the schema. Default values aren't explicitly saved in the record or shown in GET requests which retrieve the record, but are returned when an object is generated from the record. |
| slug | string (RecordSlug) [ 6 .. 40 ] characters ^(?!__)[\w\-]+ Unique (within a schema) identifier of a record. Can't be a UUID. |
| name | string or null (RecordName) [ 1 .. 255 ] characters The name of the record. If not defined and there are no fields with |
[- {
- "identifier": {
- "name": "string",
- "value": "string"
}, - "values": {
- "property1": { },
- "property2": { }
}, - "slug": "string",
- "name": "string"
}
][- {
- "identifier": {
- "name": "string",
- "value": "string"
}, - "errors": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "errorCode": "string",
- "httpStatus": 0,
- "message": "string",
- "traceId": "string",
- "errors": [
- { }
], - "source": {
- "pointer": "string",
- "value": "string"
}, - "details": {
- "property1": { },
- "property2": { }
}, - "field": "string"
}
]
}
]This endpoint can only be used for simple schemas.
Asynchronous requests are processed according to the time they reach the service.
This means that requests to synchronous endpoints may overwrite asynchronous operations which were sent earlier and queued due to high traffic.
In some edge cases, changing a record may fail further in the backend, even when this endpoint returns no errors. In such cases, contact Support.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_CREATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
Record data
required | object Definition of a unique identifier of a record |
required | object (RecordValues) Values included in the record. Each key is the name of a field. The value must match the configuration of the field in the schema. Default values aren't explicitly saved in the record or shown in GET requests which retrieve the record, but are returned when an object is generated from the record. |
| slug | string (RecordSlug) [ 6 .. 40 ] characters ^(?!__)[\w\-]+ Unique (within a schema) identifier of a record. Can't be a UUID. |
| name | string or null (RecordName) [ 1 .. 255 ] characters The name of the record. If not defined and there are no fields with |
[- {
- "identifier": {
- "name": "string",
- "value": "string"
}, - "values": {
- "property1": { },
- "property2": { }
}, - "slug": "string",
- "name": "string"
}
][- {
- "identifier": {
- "name": "string",
- "value": "string"
}, - "errors": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "errorCode": "string",
- "httpStatus": 0,
- "message": "string",
- "traceId": "string",
- "errors": [
- { }
], - "source": {
- "pointer": "string",
- "value": "string"
}, - "details": {
- "property1": { },
- "property2": { }
}, - "field": "string"
}
]
}
]Retrieve a record. You can select the fields that you want to include in the response.
If the record has multiple versions in different publishing states, the first available version is returned according to publishing status priority:
statuses parameter to limit the lookup.API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordSlug required | string [ 6 .. 40 ] characters Unique (within a schema) identifier of a record. May change between record versions. |
| fields | Array of strings A comma-separated list of fields to retrieve. If not defined, all fields are included in the response. |
| statuses | string Enum: "PUBLISHED" "DRAFT" "UNPUBLISHED" "SCHEDULED" Comma-separated list of record statuses to filter the results. |
curl --request GET \ --url 'https://api.synerise.com/brickworks/v1/schemas/%7BSchemaAppId%7D/records/%7BRecordSlug%7D?fields=SOME_ARRAY_VALUE&statuses=SOME_STRING_VALUE' \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}Retrieve records from a schema. You can paginate, sort, and refine the results. By default, the records are sorted by status (published > scheduled > draft > unpublished) and then by last update time.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| limit | integer <int32> Default: 50 Limit of items per page |
| page | integer <int32> >= 1 Default: 1 The number of the page to retrieve |
| filters | string An RSQL query to filter the results. |
| search | string A string to search for in the values of fields that were configured as searchable in the schema. |
| sortBy | string Default: "updatedAt:desc" Example: sortBy=name:asc You can change the default sorting. The sorting direction is selected by adding You can sort by:
If you're using an RSQL filter, you can also sort by:
|
| ids | string Comma-separated list of IDs (in UUID format) to filter results through |
| statuses | string Enum: "PUBLISHED" "DRAFT" "UNPUBLISHED" "SCHEDULED" Comma-separated list of record statuses to filter the results. |
curl --request GET \ --url 'https://api.synerise.com/brickworks/v1/schemas/%7BSchemaAppId%7D/records?limit=SOME_INTEGER_VALUE&page=SOME_INTEGER_VALUE&filters=SOME_STRING_VALUE&search=SOME_STRING_VALUE&sortBy=name%3Aasc&ids=SOME_STRING_VALUE&statuses=SOME_STRING_VALUE' \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "meta": {
- "links": [
- {
- "url": "string",
- "rel": "first"
}
], - "limit": 0,
- "count": 0
}, - "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}
]
}Add a record to a schema
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_CREATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
Add record to schema
| slug | string (RecordSlug) [ 6 .. 40 ] characters ^(?!__)[\w\-]+ Unique (within a schema) identifier of a record. Can't be a UUID. |
required | object (RecordValues) Values included in the record. Each key is the name of a field. The value must match the configuration of the field in the schema. Default values aren't explicitly saved in the record or shown in GET requests which retrieve the record, but are returned when an object is generated from the record. |
| status required | string (RecordStatus) Enum: "DRAFT" "SCHEDULED" "PUBLISHED" "UNPUBLISHED" Status of the record. When generating an object from a record, the last published version is used.
|
| actionOnSchedule | string (ScheduleType) Value: "PUBLISH" |
object (ScheduleEntry) Time when the record is published - for example, every Monday, from 12:00 to 14:00 | |
| name | string or null (RecordName) [ 1 .. 255 ] characters The name of the record. If not defined and there are no fields with |
{- "slug": "string",
- "values": {
- "property1": { },
- "property2": { }
}, - "status": "DRAFT",
- "actionOnSchedule": "PUBLISH",
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}, - "name": "string"
}{- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}Create a copy of a record. The name of the copy is {recordName} - copy
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_CREATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordId required | string <uuid> Record ID |
curl --request POST \ --url https://api.synerise.com/brickworks/v1/schemas/%7BSchemaAppId%7D/records/%7BRecordId%7D/duplicate \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}This endpoint can only be used for simple schemas.
Asynchronous requests are processed according to the time they reach the service.
This means that requests to synchronous endpoints may overwrite asynchronous operations which were sent earlier and queued due to high traffic.
In some edge cases, changing a record may fail further in the backend, even when this endpoint returns no errors. In such cases, contact Support.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_CREATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
Record data
required | object Definition of a unique identifier of a record |
required | object (RecordValues) Values included in the record. Each key is the name of a field. The value must match the configuration of the field in the schema. Default values aren't explicitly saved in the record or shown in GET requests which retrieve the record, but are returned when an object is generated from the record. |
| slug | string (RecordSlug) [ 6 .. 40 ] characters ^(?!__)[\w\-]+ Unique (within a schema) identifier of a record. Can't be a UUID. |
| name | string or null (RecordName) [ 1 .. 255 ] characters The name of the record. If not defined and there are no fields with |
{- "identifier": {
- "name": "string",
- "value": "string"
}, - "values": {
- "property1": { },
- "property2": { }
}, - "slug": "string",
- "name": "string"
}{- "timestamp": "2019-08-24T14:15:22Z",
- "errorCode": "string",
- "httpStatus": 0,
- "message": "string",
- "traceId": "string",
- "errors": [
- { }
], - "source": {
- "pointer": "string",
- "value": "string"
}, - "details": {
- "property1": { },
- "property2": { }
}, - "field": "string"
}This endpoint can only be used for simple schemas.
Asynchronous requests are processed according to the time they reach the service.
This means that requests to synchronous endpoints may overwrite asynchronous operations which were sent earlier and queued due to high traffic.
In some edge cases, changing a record may fail further in the backend, even when this endpoint returns no errors. In such cases, contact Support.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_CREATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
Record data
required | object Definition of a unique identifier of a record |
required | object (RecordValues) Values included in the record. Each key is the name of a field. The value must match the configuration of the field in the schema. Default values aren't explicitly saved in the record or shown in GET requests which retrieve the record, but are returned when an object is generated from the record. |
| slug | string (RecordSlug) [ 6 .. 40 ] characters ^(?!__)[\w\-]+ Unique (within a schema) identifier of a record. Can't be a UUID. |
| name | string or null (RecordName) [ 1 .. 255 ] characters The name of the record. If not defined and there are no fields with |
{- "identifier": {
- "name": "string",
- "value": "string"
}, - "values": {
- "property1": { },
- "property2": { }
}, - "slug": "string",
- "name": "string"
}{- "timestamp": "2019-08-24T14:15:22Z",
- "errorCode": "string",
- "httpStatus": 0,
- "message": "string",
- "traceId": "string",
- "errors": [
- { }
], - "source": {
- "pointer": "string",
- "value": "string"
}, - "details": {
- "property1": { },
- "property2": { }
}, - "field": "string"
}Preview an object by sending field values.
When generating a preview, fields are only generated when you send their value or they have a default value. Values saved in the record are not used in the preview.
Some data is cached:
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile), Profile (formerly client), Anonymous profile (formerly client)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordId required | string <uuid> Record ID |
| context | Array of strings (Context) List of context strings for a search query |
object (FieldContext) Additional context parameters used in recommendation and relation fields. | |
required | object (PreviewValues) The values for fields in the record, to be used when generating the preview. |
{- "context": [
- "mobile",
- "listing"
], - "fieldContext": {
- "property1": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}, - "property2": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}
}, - "values": {
- "property1": null,
- "property2": null
}
}{- "__slug": "string",
- "__recordVersion": 0,
- "__publishedAt": "2019-08-24T14:15:22Z",
- "__updatedAt": "2019-08-24T14:15:22Z",
- "__schemaId": "2e65eac3-65e7-4f52-a73f-f05393aaf4d6",
- "__id": "64891eb6-e4fa-4f98-a872-49b7669bd08f",
- "__schemaVersion": 0,
- "__createdAt": "2019-08-24T14:15:22Z",
- "additionalProperties": 0.1
}Preview an object by sending field values.
When generating a preview, fields are only generated when you send their value or they have a default value. Values saved in the record are not used in the preview.
Some data is cached:
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile), Profile (formerly client), Anonymous profile (formerly client)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordSlug required | string [ 6 .. 40 ] characters Unique (within a schema) identifier of a record. May change between record versions. |
| identifierValue required | string Value of the profile identifier selected in |
| context | Array of strings (Context) List of context strings for a search query |
object (FieldContext) Additional context parameters used in recommendation and relation fields. | |
required | object (PreviewValues) The values for fields in the record, to be used when generating the preview. |
{- "identifierValue": "string",
- "context": [
- "mobile",
- "listing"
], - "fieldContext": {
- "property1": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}, - "property2": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}
}, - "values": {
- "property1": null,
- "property2": null
}
}{- "__slug": "string",
- "__recordVersion": 0,
- "__publishedAt": "2019-08-24T14:15:22Z",
- "__updatedAt": "2019-08-24T14:15:22Z",
- "__schemaId": "2e65eac3-65e7-4f52-a73f-f05393aaf4d6",
- "__id": "64891eb6-e4fa-4f98-a872-49b7669bd08f",
- "__schemaVersion": 0,
- "__createdAt": "2019-08-24T14:15:22Z",
- "additionalProperties": 0.1
}Retrieve a record. You can select the fields that you want to include in the response.
If the record has multiple versions in different publishing states, the first available version is returned according to publishing status priority:
statuses parameter to limit the lookup.API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
| RecordId required | string <uuid> Record ID |
| fields | Array of strings A comma-separated list of fields to retrieve. If not defined, all fields are included in the response. |
| statuses | string Enum: "PUBLISHED" "DRAFT" "UNPUBLISHED" "SCHEDULED" Comma-separated list of record statuses to filter the results. |
curl --request GET \ --url 'https://api.synerise.com/brickworks/v1/schemas/%7BSchemaId%7D/records/%7BRecordId%7D?fields=SOME_ARRAY_VALUE&statuses=SOME_STRING_VALUE' \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}Update a record.
In a versioned schema, you can't directly edit a published record. To make changes, update the status to DRAFT (you can include the other changes that you want to make). This creates a new version of the record (without modifying the currently published version), which you can edit and publish.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_UPDATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
| RecordId required | string <uuid> Record ID |
| status | string (RecordStatus) Enum: "DRAFT" "SCHEDULED" "PUBLISHED" "UNPUBLISHED" Status of the record. When generating an object from a record, the last published version is used.
|
object (RecordValues) Values included in the record. Each key is the name of a field. The value must match the configuration of the field in the schema. Default values aren't explicitly saved in the record or shown in GET requests which retrieve the record, but are returned when an object is generated from the record. | |
| actionOnSchedule | string (ScheduleType) Value: "PUBLISH" |
object (ScheduleEntry) Time when the record is published - for example, every Monday, from 12:00 to 14:00 | |
| slug | string (RecordSlug) [ 6 .. 40 ] characters ^(?!__)[\w\-]+ Unique (within a schema) identifier of a record. Can't be a UUID. |
| lastUpdatedAt | string <date-time> If updating a draft keeping the draft status, you can check if it was updated by another request in the meantime:
|
| name | string or null (RecordName) [ 1 .. 255 ] characters The name of the record. If not defined and there are no fields with |
| fromState | string (RecordStatus) Enum: "DRAFT" "SCHEDULED" "PUBLISHED" "UNPUBLISHED" Status of the record. When generating an object from a record, the last published version is used.
|
{- "status": "DRAFT",
- "values": {
- "property1": { },
- "property2": { }
}, - "actionOnSchedule": "PUBLISH",
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}, - "slug": "string",
- "lastUpdatedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "fromState": "DRAFT"
}{- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}Delete a record permanently. If you want to unpublish a record instead, send an update request to change the status to UNPUBLISHED
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_DELETE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
| RecordId required | string <uuid> Record ID |
Delete record
{ }{- "timestamp": "2019-08-24T14:15:22Z",
- "errorCode": "string",
- "httpStatus": 0,
- "message": "string",
- "traceId": "string",
- "errors": [
- { }
], - "source": {
- "pointer": "string",
- "value": "string"
}, - "details": {
- "property1": { },
- "property2": { }
}, - "field": "string"
}You can dynamically generate content from a record in context of a profile.
Generate content from the latest published version of a record by processing Jinjava inserts and requests to external sources. Profile data (if needed, for example for Jinjava) is retrieved automatically from the profile declared in the request.
The system looks for values to generate in the following order:
fieldContext object (used by recommendations and relations).default object in the schema.properties of a field in the schema.The content is always generated according to the latest version of a schema:
Some data is cached:
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordSlug required | string [ 6 .. 40 ] characters Unique (within a schema) identifier of a record. May change between record versions. |
| IdentifierType required | string Enum: "id" "uuid" "email" "custom_identify" Profile identifier type |
Object generation request
| identifierValue required | string Value of the profile identifier selected in |
| context | Array of strings (Context) List of context strings for a search query |
object (FieldContext) Additional context parameters used in recommendation and relation fields. |
{- "identifierValue": "string",
- "context": [
- "mobile",
- "listing"
], - "fieldContext": {
- "property1": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}, - "property2": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}
}
}{- "__slug": "string",
- "__recordVersion": 0,
- "__publishedAt": "2019-08-24T14:15:22Z",
- "__updatedAt": "2019-08-24T14:15:22Z",
- "__schemaId": "2e65eac3-65e7-4f52-a73f-f05393aaf4d6",
- "__id": "64891eb6-e4fa-4f98-a872-49b7669bd08f",
- "__schemaVersion": 0,
- "__createdAt": "2019-08-24T14:15:22Z",
- "additionalProperties": 0.1
}Generate content from the latest published version of a record by processing Jinjava inserts and requests to external sources. Profile data (if needed, for example for Jinjava) is retrieved automatically from the profile declared in the request.
The system looks for values to generate in the following order:
fieldContext object (used by recommendations and relations).default object in the schema.properties of a field in the schema.The content is always generated according to the latest version of a schema:
Some data is cached:
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordId required | string <uuid> Record ID |
| IdentifierType required | string Enum: "id" "uuid" "email" "custom_identify" Profile identifier type |
Object generation request
| identifierValue required | string Value of the profile identifier selected in |
| context | Array of strings (Context) List of context strings for a search query |
object (FieldContext) Additional context parameters used in recommendation and relation fields. |
{- "identifierValue": "string",
- "context": [
- "mobile",
- "listing"
], - "fieldContext": {
- "property1": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}, - "property2": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}
}
}{- "__slug": "string",
- "__recordVersion": 0,
- "__publishedAt": "2019-08-24T14:15:22Z",
- "__updatedAt": "2019-08-24T14:15:22Z",
- "__schemaId": "2e65eac3-65e7-4f52-a73f-f05393aaf4d6",
- "__id": "64891eb6-e4fa-4f98-a872-49b7669bd08f",
- "__schemaVersion": 0,
- "__createdAt": "2019-08-24T14:15:22Z",
- "additionalProperties": 0.1
}Generate content from the latest published version of a record by processing Jinjava inserts and requests to external sources.
If the request is authorized by a profile, the profile data is automatically retrieve for fields which need it (for example, in Jinjava inserts).
The system looks for values to generate in the following order:
fieldContext object (used by recommendations and relations).default object in the schema.properties of a field in the schema.The content is always generated according to the latest version of a schema:
Some data is cached:
API consumers who can use this method: Profile (formerly client), Anonymous profile (formerly client), Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordSlug required | string [ 6 .. 40 ] characters Unique (within a schema) identifier of a record. May change between record versions. |
Object generation request
| context | Array of strings (Context) List of context strings for a search query |
object (FieldContext) Additional context parameters used in recommendation and relation fields. |
{- "context": [
- "mobile",
- "listing"
], - "fieldContext": {
- "property1": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}, - "property2": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}
}
}{- "__slug": "string",
- "__recordVersion": 0,
- "__publishedAt": "2019-08-24T14:15:22Z",
- "__updatedAt": "2019-08-24T14:15:22Z",
- "__schemaId": "2e65eac3-65e7-4f52-a73f-f05393aaf4d6",
- "__id": "64891eb6-e4fa-4f98-a872-49b7669bd08f",
- "__schemaVersion": 0,
- "__createdAt": "2019-08-24T14:15:22Z",
- "additionalProperties": 0.1
}Generate content from the latest published version of a record by processing Jinjava inserts and requests to external sources.
If the request is authorized by a profile, the profile data is automatically retrieve for fields which need it (for example, in Jinjava inserts).
The system looks for values to generate in the following order:
fieldContext object (used by recommendations and relations).default object in the schema.properties of a field in the schema.The content is always generated according to the latest version of a schema:
Some data is cached:
API consumers who can use this method: Profile (formerly client), Anonymous profile (formerly client), Workspace (formerly Business Profile), Synerise User
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaAppId required | string Schema appId |
| RecordId required | string <uuid> Record ID |
Object generation request
| context | Array of strings (Context) List of context strings for a search query |
object (FieldContext) Additional context parameters used in recommendation and relation fields. |
{- "context": [
- "mobile",
- "listing"
], - "fieldContext": {
- "property1": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}, - "property2": {
- "page": 0,
- "limit": 0,
- "itemId": "string",
- "property1": null,
- "property2": null
}
}
}{- "__slug": "string",
- "__recordVersion": 0,
- "__publishedAt": "2019-08-24T14:15:22Z",
- "__updatedAt": "2019-08-24T14:15:22Z",
- "__schemaId": "2e65eac3-65e7-4f52-a73f-f05393aaf4d6",
- "__id": "64891eb6-e4fa-4f98-a872-49b7669bd08f",
- "__schemaVersion": 0,
- "__createdAt": "2019-08-24T14:15:22Z",
- "additionalProperties": 0.1
}External sources can be used to pull data from a third-party resource when generating content from a record.
Retrieve a list of external data sources. You can sort and paginate the results.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_EXTERNALSOURCES_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| limit | integer <int32> Default: 50 Limit of items per page |
| page | integer <int32> >= 1 Default: 1 The number of the page to retrieve |
| sortBy | string Example: sortBy=createdAt:asc|desc You can sort by:
|
| method | string Enum: "get" "post" You can filter the results by source http method. |
curl --request GET \ --url 'https://api.synerise.com/brickworks/v1/external-sources?limit=SOME_INTEGER_VALUE&page=SOME_INTEGER_VALUE&sortBy=createdAt%3Aasc%7Cdesc&method=SOME_STRING_VALUE' \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "meta": {
- "links": [
- {
- "url": "string",
- "rel": "first"
}
], - "limit": 0,
- "count": 0
}, - "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "method": "post",
- "description": "string",
- "sourceType": "http_source",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Create an external data source definition. External sources can be used as a special schema field to retrieve data from a given URL when generating an object from a record.
Before starting, make sure you have a connection which you can use in the external source definition.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_EXTERNALSOURCES_CREATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
External data source definition
| name required | string <uuid> (ExternalSourceId) Unique ID of the external source definition |
| description | string (ExternalSourceDescription) <= 255 characters Description of the external source |
required | any (ExternalSourceProperties) The details of the external source configuration |
| ttl | number <int32> (ExternalSourceTtl) Cache TTL for connection response, in seconds |
{- "name": "9ffa9185-7453-4fb2-aa6a-3105a6ae83a8",
- "description": "string",
- "properties": {
- "sourceType": "http_source",
- "url": "https://example.com/clients/{% customer email %}",
- "method": "post",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "params": {
- "property1": "string",
- "property2": "string"
}, - "authType": "basic",
- "authId": "25d4321e-f980-49d3-983b-4275c49dc2c4",
- "body": {
- "someString": "string",
- "someObject": {
- "key": "{% customer email %}"
}, - "dynamicField": "{% customer id %}"
}, - "bodySchema": {
- "type": "object",
- "subtype": "key_value",
- "properties": {
- "someObject": {
- "type": "object",
- "subtype": "key_value",
- "properties": {
- "key": {
- "type": "string",
- "subtype": "jinjava"
}
}, - "additionalProperties": true
}, - "dynamicField": {
- "type": "string",
- "subtype": "jinjava"
}
}, - "additionalProperties": true
}
}, - "ttl": 0
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "properties": {
- "sourceType": "http_source",
- "url": "https://example.com/clients/{% customer email %}",
- "method": "post",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "params": {
- "property1": "string",
- "property2": "string"
}, - "authType": "basic",
- "authId": "25d4321e-f980-49d3-983b-4275c49dc2c4",
- "body": {
- "someString": "string",
- "someObject": {
- "key": "{% customer email %}"
}, - "dynamicField": "{% customer id %}"
}, - "bodySchema": {
- "type": "object",
- "subtype": "key_value",
- "properties": {
- "someObject": {
- "type": "object",
- "subtype": "key_value",
- "properties": {
- "key": {
- "type": "string",
- "subtype": "jinjava"
}
}, - "additionalProperties": true
}, - "dynamicField": {
- "type": "string",
- "subtype": "jinjava"
}
}, - "additionalProperties": true
}
}, - "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "ttl": 0
}Retrieve the details of an external data source.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_EXTERNALSOURCES_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| ExternalDataSourceId required | string <uuid> External source ID |
curl --request GET \ --url https://api.synerise.com/brickworks/v1/external-sources/%7BExternalDataSourceId%7D \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "properties": {
- "sourceType": "http_source",
- "url": "https://example.com/clients/{% customer email %}",
- "method": "post",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "params": {
- "property1": "string",
- "property2": "string"
}, - "authType": "basic",
- "authId": "25d4321e-f980-49d3-983b-4275c49dc2c4",
- "body": {
- "someString": "string",
- "someObject": {
- "key": "{% customer email %}"
}, - "dynamicField": "{% customer id %}"
}, - "bodySchema": {
- "type": "object",
- "subtype": "key_value",
- "properties": {
- "someObject": {
- "type": "object",
- "subtype": "key_value",
- "properties": {
- "key": {
- "type": "string",
- "subtype": "jinjava"
}
}, - "additionalProperties": true
}, - "dynamicField": {
- "type": "string",
- "subtype": "jinjava"
}
}, - "additionalProperties": true
}
}, - "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "ttl": 0
}Update an external data source definition.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_EXTERNALSOURCES_UPDATE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| ExternalDataSourceId required | string <uuid> External source ID |
| name | string (ExternalSourceName) <= 255 characters Human-readable name of the external resource |
| description | string (ExternalSourceDescription) <= 255 characters Description of the external source |
any (ExternalSourceProperties) The details of the external source configuration | |
| ttl | number <int32> |
{- "name": "string",
- "description": "string",
- "properties": {
- "sourceType": "http_source",
- "url": "https://example.com/clients/{% customer email %}",
- "method": "post",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "params": {
- "property1": "string",
- "property2": "string"
}, - "authType": "basic",
- "authId": "25d4321e-f980-49d3-983b-4275c49dc2c4",
- "body": {
- "someString": "string",
- "someObject": {
- "key": "{% customer email %}"
}, - "dynamicField": "{% customer id %}"
}, - "bodySchema": {
- "type": "object",
- "subtype": "key_value",
- "properties": {
- "someObject": {
- "type": "object",
- "subtype": "key_value",
- "properties": {
- "key": {
- "type": "string",
- "subtype": "jinjava"
}
}, - "additionalProperties": true
}, - "dynamicField": {
- "type": "string",
- "subtype": "jinjava"
}
}, - "additionalProperties": true
}
}, - "ttl": 0
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "properties": {
- "sourceType": "http_source",
- "url": "https://example.com/clients/{% customer email %}",
- "method": "post",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "params": {
- "property1": "string",
- "property2": "string"
}, - "authType": "basic",
- "authId": "25d4321e-f980-49d3-983b-4275c49dc2c4",
- "body": {
- "someString": "string",
- "someObject": {
- "key": "{% customer email %}"
}, - "dynamicField": "{% customer id %}"
}, - "bodySchema": {
- "type": "object",
- "subtype": "key_value",
- "properties": {
- "someObject": {
- "type": "object",
- "subtype": "key_value",
- "properties": {
- "key": {
- "type": "string",
- "subtype": "jinjava"
}
}, - "additionalProperties": true
}, - "dynamicField": {
- "type": "string",
- "subtype": "jinjava"
}
}, - "additionalProperties": true
}
}, - "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "ttl": 0
}Permanently delete an external data source definition.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_EXTERNALSOURCES_DELETE
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| ExternalDataSourceId required | string <uuid> External source ID |
curl --request DELETE \ --url https://api.synerise.com/brickworks/v1/external-sources/%7BExternalDataSourceId%7D \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "timestamp": "2019-08-24T14:15:22Z",
- "errorCode": "string",
- "httpStatus": 0,
- "message": "string",
- "traceId": "string",
- "errors": [
- { }
], - "source": {
- "pointer": "string",
- "value": "string"
}, - "details": {
- "property1": { },
- "property2": { }
}, - "field": "string"
}Retrieve the details of a record version.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
| RecordId required | string <uuid> Record ID |
| RecordVersionId required | string <uuid> Record Id |
curl --request GET \ --url https://api.synerise.com/brickworks/v1/schemas/%7BSchemaId%7D/records/%7BRecordId%7D/versions/%7BRecordVersionId%7D \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7",
- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}Retrieve all versions of a record. You can paginate, sort, and refine the results. By default, the versions are sorted from newest to oldest.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
| RecordId required | string <uuid> Record ID |
| limit | integer <int32> Default: 50 Limit of items per page |
| page | integer <int32> >= 1 Default: 1 The number of the page to retrieve |
| sortBy | string Default: "updatedAt:desc" Example: sortBy=name:asc You can change the default sorting. The sorting direction is selected by adding You can sort by:
If you're using an RSQL filter, you can also sort by:
|
| statuses | string Enum: "PUBLISHED" "DRAFT" "UNPUBLISHED" "SCHEDULED" Comma-separated list of record statuses to filter the results. |
curl --request GET \ --url 'https://api.synerise.com/brickworks/v1/schemas/%7BSchemaId%7D/records/%7BRecordId%7D/versions?limit=SOME_INTEGER_VALUE&page=SOME_INTEGER_VALUE&sortBy=name%3Aasc&statuses=SOME_STRING_VALUE' \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "meta": {
- "links": [
- {
- "url": "string",
- "rel": "first"
}
], - "limit": 0,
- "count": 0
}, - "data": [
- {
- "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7",
- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}
]
}Retrieve all versions of a record. You can paginate, sort, and refine the results. By default, the versions are sorted from newest to oldest.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
| RecordSlug required | string [ 6 .. 40 ] characters Unique (within a schema) identifier of a record. May change between record versions. |
| limit | integer <int32> Default: 50 Limit of items per page |
| page | integer <int32> >= 1 Default: 1 The number of the page to retrieve |
| sortBy | string Default: "updatedAt:desc" Example: sortBy=name:asc You can change the default sorting. The sorting direction is selected by adding You can sort by:
If you're using an RSQL filter, you can also sort by:
|
| statuses | string Enum: "PUBLISHED" "DRAFT" "UNPUBLISHED" "SCHEDULED" Comma-separated list of record statuses to filter the results. |
curl --request GET \ --url 'https://api.synerise.com/brickworks/v1/schemas/%7BSchemaId%7D/records/%7BRecordSlug%7D/versions?limit=SOME_INTEGER_VALUE&page=SOME_INTEGER_VALUE&sortBy=name%3Aasc&statuses=SOME_STRING_VALUE' \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "meta": {
- "links": [
- {
- "url": "string",
- "rel": "first"
}
], - "limit": 0,
- "count": 0
}, - "data": [
- {
- "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7",
- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}
]
}Retrieve the details of a record version.
API consumers who can use this method: Synerise User, Workspace (formerly Business Profile)
API key Permissions are assigned to API keys (for Profile and Workspace scopes) and dictate which operations are available when using a particular API key. In the application, you can manage those permissions in Settings > API Keys. Remember that Profile and Workspace API keys are separate entities.permission required: BRICKWORKS_RECORDS_READ
User permissions are grouped and assigned to user roles. For each group, you can set separate permissions for the following operations: read, execute, create, edit, delete. In the application, they are available in Settings > Roles. To edit a role's permissions, hover over the role and click the "Permissions" button.User role permission group which allows access to this method: ASSETS_BRICKWORKS
| SchemaId required | string <uuid> Unique ID of a schema |
| RecordId required | string <uuid> Record ID |
| RecordVersionNumber required | number <int32> Record version number |
curl --request GET \ --url https://api.synerise.com/brickworks/v1/schemas/%7BSchemaId%7D/records/%7BRecordId%7D/versions/%7BRecordVersionNumber%7D \ --header 'Authorization: Basic REPLACE_BASIC_AUTH'
{- "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7",
- "values": {
- "property1": { },
- "property2": { }
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "schemaId": "50477be4-cda2-41e9-bf5b-64a9a075243f",
- "createdBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "updatedBy": {
- "userId": 0,
- "userName": "string",
- "userEmail": "string",
- "userAvatarUrl": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "publishedBy": 0,
- "deletedBy": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "publishedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "status": "DRAFT",
- "schemaVersion": 0,
- "recordVersion": 0,
- "schedule": {
- "timezone": "UTC+01:00",
- "startType": "NOW",
- "startDate": "2019-08-24T14:15:22Z",
- "endType": "NEVER",
- "endDate": "2019-08-24T14:15:22Z",
- "periodType": "ENTIRE",
- "parts": [
- {
- "startDay": 1,
- "startTime": "08:18:03",
- "endDay": 1,
- "endTime": "44283",
- "ordinal": "FIRST"
}
], - "enabled": true
}
}