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 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": [
- {
- "businessProfileId": 48,
- "primaryKey": {
- "type": "auto_pk"
}, - "schemaName": "firstSchema",
- "schemaId": "86403a7d-1120-491a-a789-3d328d91193d",
- "createdAt": "2020-07-07T09:03:13.390101Z",
- "createdBy": 1234,
- "modifiedAt": "2020-07-07T09:03:13.390101Z",
- "modifiedBy": 1234,
- "deletedAt": "2020-07-07T09:03:13.390101Z",
- "deletedBy": 1234,
- "fields": {
- "property1": {
- "type": "TEXT",
- "design": {
- "label": "string",
- "hideLabel": true,
- "placeholder": "string",
- "description": "string",
- "tooltip": "string",
- "tabIndex": 0,
- "initialFocus": true
}, - "validation": {
- "required": true,
- "unique": true,
- "minimumLength": 0,
- "maximumLength": 0,
- "regexPattern": "string",
- "errorMessage": "string"
}, - "layout": {
- "marginTop": "15px",
- "marginRight": "1cm",
- "marginBottom": "12pt",
- "marginLeft": "1.0em"
}
}, - "property2": {
- "type": "TEXT",
- "design": {
- "label": "string",
- "hideLabel": true,
- "placeholder": "string",
- "description": "string",
- "tooltip": "string",
- "tabIndex": 0,
- "initialFocus": true
}, - "validation": {
- "required": true,
- "unique": true,
- "minimumLength": 0,
- "maximumLength": 0,
- "regexPattern": "string",
- "errorMessage": "string"
}, - "layout": {
- "marginTop": "15px",
- "marginRight": "1cm",
- "marginBottom": "12pt",
- "marginLeft": "1.0em"
}
}
}, - "layout": [
- {
- "type": "SINGLE",
- "fieldName": "string"
}
], - "relations": {
- "property1": {
- "type": "one",
- "schemaId": "0790bd7c-8c2b-4e31-b01a-eee434331800",
- "constraints": [
- {
- "type": "equal",
- "schemaFieldName": "string",
- "relatedSchemaFieldName": "string"
}
]
}, - "property2": {
- "type": "one",
- "schemaId": "0790bd7c-8c2b-4e31-b01a-eee434331800",
- "constraints": [
- {
- "type": "equal",
- "schemaFieldName": "string",
- "relatedSchemaFieldName": "string"
}
]
}
}, - "tags": [
- "string"
], - "permissionStatus": "private"
}
]
}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) The profiles (clients) which have access to this resource | |
| 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": {
- "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
}
}, - "property2": {
- "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"
], - "allOf": [
- {
- "if": {
- "required": [
- "string"
], - "properties": {
- "property1": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "string"
]
}, - "property2": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "string"
]
}
}
}, - "then": {
- "required": [
- "string"
], - "properties": {
- "property1": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "string"
]
}, - "property2": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "string"
]
}
}
}, - "else": {
- "required": [
- "string"
], - "properties": {
- "property1": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "string"
]
}, - "property2": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "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": [
- "string"
], - "query": "{\"analysis\":{\"title\":\"Unnamed segmentation\",\"description\":\"\",\"unique\":true,\"segments\":[{\"title\":\"Segmentation A\",\"description\":\"\",\"filter\":{\"matching\":true,\"expressions\":[{\"_id\":\"a9b76c8e-34bd-4ac3-be8f-f37041d126bd\",\"name\":\"\",\"type\":\"FUNNEL\",\"matching\":true,\"funnel\":{\"_id\":\"5c759d73-49c6-409f-96a3-b569dff8f8ff\",\"title\":\"Unnamed\",\"completedWithin\":null,\"dateFilter\":{\"type\":\"RELATIVE\",\"offset\":{\"type\":\"DAYS\",\"value\":0},\"duration\":{\"type\":\"DAYS\",\"value\":30}},\"steps\":[{\"_id\":\"78b97ae0-1bc5-45fb-82a4-4f1280cfbdff\",\"title\":\"\",\"action\":{\"id\":944,\"name\":\"page.visit\"},\"eventName\":\"page.visit\",\"expressions\":[]}],\"exact\":false}}]}}]}}"
}, - "isSimpleSchema": false
}{- "businessProfileId": 48,
- "primaryKey": {
- "type": "auto_pk"
}, - "schemaName": "firstSchema",
- "schemaId": "86403a7d-1120-491a-a789-3d328d91193d",
- "createdAt": "2020-07-07T09:03:13.390101Z",
- "createdBy": 1234,
- "modifiedAt": "2020-07-07T09:03:13.390101Z",
- "modifiedBy": 1234,
- "deletedAt": "2020-07-07T09:03:13.390101Z",
- "deletedBy": 1234,
- "fields": {
- "property1": {
- "type": "TEXT",
- "design": {
- "label": "string",
- "hideLabel": true,
- "placeholder": "string",
- "description": "string",
- "tooltip": "string",
- "tabIndex": 0,
- "initialFocus": true
}, - "validation": {
- "required": true,
- "unique": true,
- "minimumLength": 0,
- "maximumLength": 0,
- "regexPattern": "string",
- "errorMessage": "string"
}, - "layout": {
- "marginTop": "15px",
- "marginRight": "1cm",
- "marginBottom": "12pt",
- "marginLeft": "1.0em"
}
}, - "property2": {
- "type": "TEXT",
- "design": {
- "label": "string",
- "hideLabel": true,
- "placeholder": "string",
- "description": "string",
- "tooltip": "string",
- "tabIndex": 0,
- "initialFocus": true
}, - "validation": {
- "required": true,
- "unique": true,
- "minimumLength": 0,
- "maximumLength": 0,
- "regexPattern": "string",
- "errorMessage": "string"
}, - "layout": {
- "marginTop": "15px",
- "marginRight": "1cm",
- "marginBottom": "12pt",
- "marginLeft": "1.0em"
}
}
}, - "layout": [
- {
- "type": "SINGLE",
- "fieldName": "string"
}
], - "relations": {
- "property1": {
- "type": "one",
- "schemaId": "0790bd7c-8c2b-4e31-b01a-eee434331800",
- "constraints": [
- {
- "type": "equal",
- "schemaFieldName": "string",
- "relatedSchemaFieldName": "string"
}
]
}, - "property2": {
- "type": "one",
- "schemaId": "0790bd7c-8c2b-4e31-b01a-eee434331800",
- "constraints": [
- {
- "type": "equal",
- "schemaFieldName": "string",
- "relatedSchemaFieldName": "string"
}
]
}
}, - "tags": [
- "string"
], - "permissionStatus": "private"
}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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
{- "businessProfileId": 48,
- "primaryKey": {
- "type": "auto_pk"
}, - "schemaName": "firstSchema",
- "schemaId": "86403a7d-1120-491a-a789-3d328d91193d",
- "createdAt": "2020-07-07T09:03:13.390101Z",
- "createdBy": 1234,
- "modifiedAt": "2020-07-07T09:03:13.390101Z",
- "modifiedBy": 1234,
- "deletedAt": "2020-07-07T09:03:13.390101Z",
- "deletedBy": 1234,
- "fields": {
- "property1": {
- "type": "TEXT",
- "design": {
- "label": "string",
- "hideLabel": true,
- "placeholder": "string",
- "description": "string",
- "tooltip": "string",
- "tabIndex": 0,
- "initialFocus": true
}, - "validation": {
- "required": true,
- "unique": true,
- "minimumLength": 0,
- "maximumLength": 0,
- "regexPattern": "string",
- "errorMessage": "string"
}, - "layout": {
- "marginTop": "15px",
- "marginRight": "1cm",
- "marginBottom": "12pt",
- "marginLeft": "1.0em"
}
}, - "property2": {
- "type": "TEXT",
- "design": {
- "label": "string",
- "hideLabel": true,
- "placeholder": "string",
- "description": "string",
- "tooltip": "string",
- "tabIndex": 0,
- "initialFocus": true
}, - "validation": {
- "required": true,
- "unique": true,
- "minimumLength": 0,
- "maximumLength": 0,
- "regexPattern": "string",
- "errorMessage": "string"
}, - "layout": {
- "marginTop": "15px",
- "marginRight": "1cm",
- "marginBottom": "12pt",
- "marginLeft": "1.0em"
}
}
}, - "layout": [
- {
- "type": "SINGLE",
- "fieldName": "string"
}
], - "relations": {
- "property1": {
- "type": "one",
- "schemaId": "0790bd7c-8c2b-4e31-b01a-eee434331800",
- "constraints": [
- {
- "type": "equal",
- "schemaFieldName": "string",
- "relatedSchemaFieldName": "string"
}
]
}, - "property2": {
- "type": "one",
- "schemaId": "0790bd7c-8c2b-4e31-b01a-eee434331800",
- "constraints": [
- {
- "type": "equal",
- "schemaFieldName": "string",
- "relatedSchemaFieldName": "string"
}
]
}
}, - "tags": [
- "string"
], - "permissionStatus": "private"
}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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
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) The profiles (clients) which have access to this resource |
{- "displayName": "string",
- "description": "string",
- "fields": {
- "type": "object",
- "properties": {
- "property1": {
- "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
}
}, - "property2": {
- "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"
], - "allOf": [
- {
- "if": {
- "required": [
- "string"
], - "properties": {
- "property1": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "string"
]
}, - "property2": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "string"
]
}
}
}, - "then": {
- "required": [
- "string"
], - "properties": {
- "property1": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "string"
]
}, - "property2": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "string"
]
}
}
}, - "else": {
- "required": [
- "string"
], - "properties": {
- "property1": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "string"
]
}, - "property2": {
- "minItems": 0,
- "maxItems": 0,
- "uniqueItems": true,
- "minimum": 0,
- "maximum": 0,
- "pattern": "string",
- "const": null,
- "enum": [
- "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": [
- "string"
], - "query": "{\"analysis\":{\"title\":\"Unnamed segmentation\",\"description\":\"\",\"unique\":true,\"segments\":[{\"title\":\"Segmentation A\",\"description\":\"\",\"filter\":{\"matching\":true,\"expressions\":[{\"_id\":\"a9b76c8e-34bd-4ac3-be8f-f37041d126bd\",\"name\":\"\",\"type\":\"FUNNEL\",\"matching\":true,\"funnel\":{\"_id\":\"5c759d73-49c6-409f-96a3-b569dff8f8ff\",\"title\":\"Unnamed\",\"completedWithin\":null,\"dateFilter\":{\"type\":\"RELATIVE\",\"offset\":{\"type\":\"DAYS\",\"value\":0},\"duration\":{\"type\":\"DAYS\",\"value\":30}},\"steps\":[{\"_id\":\"78b97ae0-1bc5-45fb-82a4-4f1280cfbdff\",\"title\":\"\",\"action\":{\"id\":944,\"name\":\"page.visit\"},\"eventName\":\"page.visit\",\"expressions\":[]}],\"exact\":false}}]}}]}}"
}
}{- "businessProfileId": 48,
- "primaryKey": {
- "type": "auto_pk"
}, - "schemaName": "firstSchema",
- "schemaId": "86403a7d-1120-491a-a789-3d328d91193d",
- "createdAt": "2020-07-07T09:03:13.390101Z",
- "createdBy": 1234,
- "modifiedAt": "2020-07-07T09:03:13.390101Z",
- "modifiedBy": 1234,
- "deletedAt": "2020-07-07T09:03:13.390101Z",
- "deletedBy": 1234,
- "fields": {
- "property1": {
- "type": "TEXT",
- "design": {
- "label": "string",
- "hideLabel": true,
- "placeholder": "string",
- "description": "string",
- "tooltip": "string",
- "tabIndex": 0,
- "initialFocus": true
}, - "validation": {
- "required": true,
- "unique": true,
- "minimumLength": 0,
- "maximumLength": 0,
- "regexPattern": "string",
- "errorMessage": "string"
}, - "layout": {
- "marginTop": "15px",
- "marginRight": "1cm",
- "marginBottom": "12pt",
- "marginLeft": "1.0em"
}
}, - "property2": {
- "type": "TEXT",
- "design": {
- "label": "string",
- "hideLabel": true,
- "placeholder": "string",
- "description": "string",
- "tooltip": "string",
- "tabIndex": 0,
- "initialFocus": true
}, - "validation": {
- "required": true,
- "unique": true,
- "minimumLength": 0,
- "maximumLength": 0,
- "regexPattern": "string",
- "errorMessage": "string"
}, - "layout": {
- "marginTop": "15px",
- "marginRight": "1cm",
- "marginBottom": "12pt",
- "marginLeft": "1.0em"
}
}
}, - "layout": [
- {
- "type": "SINGLE",
- "fieldName": "string"
}
], - "relations": {
- "property1": {
- "type": "one",
- "schemaId": "0790bd7c-8c2b-4e31-b01a-eee434331800",
- "constraints": [
- {
- "type": "equal",
- "schemaFieldName": "string",
- "relatedSchemaFieldName": "string"
}
]
}, - "property2": {
- "type": "one",
- "schemaId": "0790bd7c-8c2b-4e31-b01a-eee434331800",
- "constraints": [
- {
- "type": "equal",
- "schemaFieldName": "string",
- "relatedSchemaFieldName": "string"
}
]
}
}, - "tags": [
- "string"
], - "permissionStatus": "private"
}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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
{- "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 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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
| 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. |
| slugs | string Comma-separated list of slugs to filter results through |
{- "meta": {
- "links": [
- {
- "url": "string",
- "rel": "first"
}
], - "limit": 0,
- "count": 0
}, - "data": [
- {
- "id": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "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"
}
], - "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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
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. Supported value types:
|
| 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) Enum: "SCREENVIEW" "DOCUMENT" Type of the scheduled object |
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": {
- "stringField": "example string",
- "numberField": 123.45,
- "integerField": 42,
- "booleanField": true,
- "dateField": "2024-01-15",
- "dateTimeField": "2024-01-15T10:30:00Z",
- "uuidField": "550e8400-e29b-41d4-a716-446655440000",
- "arrayField": [
- "item1",
- "item2"
], - "objectField": {
- "key": "value"
}, - "profileAttribute": {
- "attributeName": "email"
}, - "catalog": {
- "itemKey": "SKU123",
- "id": "catalog-id"
}, - "recommendation": {
- "id": "recommendation-campaign-id",
- "params": {
- "itemId": "item-123"
}
}
}, - "status": "DRAFT",
- "actionOnSchedule": "SCREENVIEW",
- "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"
}
], - "enabled": true
}, - "name": "string"
}{- "schemaId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "recordId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "businessProfileId": 48,
- "createdAt": "2020-07-07T09:03:13.390101Z",
- "createdBy": 1234,
- "modifiedAt": "2020-07-07T09:03:13.390101Z",
- "modifiedBy": 1234,
- "deletedAt": "2020-07-07T09:03:13.390101Z",
- "deletedBy": 1234,
- "fields": {
- "property1": {
- "value": "This is my first task"
}, - "property2": {
- "value": "This is my first task"
}
}, - "relations": {
- "property1": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}, - "property2": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}
}, - "permissionStatus": "private"
}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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
required | Record UUID (string) or Record slug (string) Examples:
Record identifier - can be a UUID (RecordId) or a human-readable slug (RecordSlug, 6-40 characters) |
| 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. |
{- "schemaId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "recordId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "businessProfileId": 48,
- "createdAt": "2020-07-07T09:03:13.390101Z",
- "createdBy": 1234,
- "modifiedAt": "2020-07-07T09:03:13.390101Z",
- "modifiedBy": 1234,
- "deletedAt": "2020-07-07T09:03:13.390101Z",
- "deletedBy": 1234,
- "fields": {
- "property1": {
- "value": "This is my first task"
}, - "property2": {
- "value": "This is my first task"
}
}, - "relations": {
- "property1": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}, - "property2": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}
}, - "permissionStatus": "private"
}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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
required | Record UUID (string) or Record slug (string) Examples:
Record identifier - can be a UUID (RecordId) or a human-readable slug (RecordSlug, 6-40 characters) |
| 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. Supported value types:
| |
| actionOnSchedule | string (ScheduleType) Enum: "SCREENVIEW" "DOCUMENT" Type of the scheduled object |
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": {
- "stringField": "example string",
- "numberField": 123.45,
- "integerField": 42,
- "booleanField": true,
- "dateField": "2024-01-15",
- "dateTimeField": "2024-01-15T10:30:00Z",
- "uuidField": "550e8400-e29b-41d4-a716-446655440000",
- "arrayField": [
- "item1",
- "item2"
], - "objectField": {
- "key": "value"
}, - "profileAttribute": {
- "attributeName": "email"
}, - "catalog": {
- "itemKey": "SKU123",
- "id": "catalog-id"
}, - "recommendation": {
- "id": "recommendation-campaign-id",
- "params": {
- "itemId": "item-123"
}
}
}, - "actionOnSchedule": "SCREENVIEW",
- "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"
}
], - "enabled": true
}, - "slug": "string",
- "lastUpdatedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "fromState": "DRAFT"
}{- "schemaId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "recordId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "businessProfileId": 48,
- "createdAt": "2020-07-07T09:03:13.390101Z",
- "createdBy": 1234,
- "modifiedAt": "2020-07-07T09:03:13.390101Z",
- "modifiedBy": 1234,
- "deletedAt": "2020-07-07T09:03:13.390101Z",
- "deletedBy": 1234,
- "fields": {
- "property1": {
- "value": "This is my first task"
}, - "property2": {
- "value": "This is my first task"
}
}, - "relations": {
- "property1": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}, - "property2": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}
}, - "permissionStatus": "private"
}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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
required | Record UUID (string) or Record slug (string) Examples:
Record identifier - can be a UUID (RecordId) or a human-readable slug (RecordSlug, 6-40 characters) |
{- "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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
required | Record UUID (string) or Record slug (string) Examples:
Record identifier - can be a UUID (RecordId) or a human-readable slug (RecordSlug, 6-40 characters) |
| 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": "my-record-slug",
- "__recordVersion": 1,
- "__publishedAt": "2024-01-15T10:30:00Z",
- "__updatedAt": "2024-01-15T10:30:00Z",
- "__schemaId": "550e8400-e29b-41d4-a716-446655440000",
- "__id": "550e8400-e29b-41d4-a716-446655440001",
- "__schemaVersion": 1,
- "__createdAt": "2024-01-15T10:30:00Z",
- "customStringField": "string value",
- "customNumberField": 123.45,
- "customBooleanField": true,
- "customDateField": "2024-01-15",
- "customArrayField": [
- "item1",
- "item2"
], - "customObjectField": {
- "nestedKey": "nestedValue"
}
}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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
required | Record UUID (string) or Record slug (string) Examples:
Record identifier - can be a UUID (RecordId) or a human-readable slug (RecordSlug, 6-40 characters) |
| 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": "my-record-slug",
- "__recordVersion": 1,
- "__publishedAt": "2024-01-15T10:30:00Z",
- "__updatedAt": "2024-01-15T10:30:00Z",
- "__schemaId": "550e8400-e29b-41d4-a716-446655440000",
- "__id": "550e8400-e29b-41d4-a716-446655440001",
- "__schemaVersion": 1,
- "__createdAt": "2024-01-15T10:30:00Z",
- "customStringField": "string value",
- "customNumberField": 123.45,
- "customBooleanField": true,
- "customDateField": "2024-01-15",
- "customArrayField": [
- "item1",
- "item2"
], - "customObjectField": {
- "nestedKey": "nestedValue"
}
}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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
required | Record UUID (string) or Record slug (string) Examples:
Record identifier - can be a UUID (RecordId) or a human-readable slug (RecordSlug, 6-40 characters) |
{- "schemaId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "recordId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "businessProfileId": 48,
- "createdAt": "2020-07-07T09:03:13.390101Z",
- "createdBy": 1234,
- "modifiedAt": "2020-07-07T09:03:13.390101Z",
- "modifiedBy": 1234,
- "deletedAt": "2020-07-07T09:03:13.390101Z",
- "deletedBy": 1234,
- "fields": {
- "property1": {
- "value": "This is my first task"
}, - "property2": {
- "value": "This is my first task"
}
}, - "relations": {
- "property1": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}, - "property2": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}
}, - "permissionStatus": "private"
}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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
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. Supported value types:
|
| 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": {
- "stringField": "example string",
- "numberField": 123.45,
- "integerField": 42,
- "booleanField": true,
- "dateField": "2024-01-15",
- "dateTimeField": "2024-01-15T10:30:00Z",
- "uuidField": "550e8400-e29b-41d4-a716-446655440000",
- "arrayField": [
- "item1",
- "item2"
], - "objectField": {
- "key": "value"
}, - "profileAttribute": {
- "attributeName": "email"
}, - "catalog": {
- "itemKey": "SKU123",
- "id": "catalog-id"
}, - "recommendation": {
- "id": "recommendation-campaign-id",
- "params": {
- "itemId": "item-123"
}
}
}, - "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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
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. Supported value types:
|
| 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": {
- "stringField": "example string",
- "numberField": 123.45,
- "integerField": 42,
- "booleanField": true,
- "dateField": "2024-01-15",
- "dateTimeField": "2024-01-15T10:30:00Z",
- "uuidField": "550e8400-e29b-41d4-a716-446655440000",
- "arrayField": [
- "item1",
- "item2"
], - "objectField": {
- "key": "value"
}, - "profileAttribute": {
- "attributeName": "email"
}, - "catalog": {
- "itemKey": "SKU123",
- "id": "catalog-id"
}, - "recommendation": {
- "id": "recommendation-campaign-id",
- "params": {
- "itemId": "item-123"
}
}
}, - "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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
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. Supported value types:
|
| 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": {
- "stringField": "example string",
- "numberField": 123.45,
- "integerField": 42,
- "booleanField": true,
- "dateField": "2024-01-15",
- "dateTimeField": "2024-01-15T10:30:00Z",
- "uuidField": "550e8400-e29b-41d4-a716-446655440000",
- "arrayField": [
- "item1",
- "item2"
], - "objectField": {
- "key": "value"
}, - "profileAttribute": {
- "attributeName": "email"
}, - "catalog": {
- "itemKey": "SKU123",
- "id": "catalog-id"
}, - "recommendation": {
- "id": "recommendation-campaign-id",
- "params": {
- "itemId": "item-123"
}
}
}, - "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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
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. Supported value types:
|
| 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": {
- "stringField": "example string",
- "numberField": 123.45,
- "integerField": 42,
- "booleanField": true,
- "dateField": "2024-01-15",
- "dateTimeField": "2024-01-15T10:30:00Z",
- "uuidField": "550e8400-e29b-41d4-a716-446655440000",
- "arrayField": [
- "item1",
- "item2"
], - "objectField": {
- "key": "value"
}, - "profileAttribute": {
- "attributeName": "email"
}, - "catalog": {
- "itemKey": "SKU123",
- "id": "catalog-id"
}, - "recommendation": {
- "id": "recommendation-campaign-id",
- "params": {
- "itemId": "item-123"
}
}
}, - "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"
}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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
required | Record UUID (string) or Record slug (string) Examples:
Record identifier - can be a UUID (RecordId) or a human-readable slug (RecordSlug, 6-40 characters) |
| 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": "my-record-slug",
- "__recordVersion": 1,
- "__publishedAt": "2024-01-15T10:30:00Z",
- "__updatedAt": "2024-01-15T10:30:00Z",
- "__schemaId": "550e8400-e29b-41d4-a716-446655440000",
- "__id": "550e8400-e29b-41d4-a716-446655440001",
- "__schemaVersion": 1,
- "__createdAt": "2024-01-15T10:30:00Z",
- "customStringField": "string value",
- "customNumberField": 123.45,
- "customBooleanField": true,
- "customDateField": "2024-01-15",
- "customArrayField": [
- "item1",
- "item2"
], - "customObjectField": {
- "nestedKey": "nestedValue"
}
}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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
required | Record UUID (string) or Record slug (string) Examples:
Record identifier - can be a UUID (RecordId) or a human-readable slug (RecordSlug, 6-40 characters) |
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": "my-record-slug",
- "__recordVersion": 1,
- "__publishedAt": "2024-01-15T10:30:00Z",
- "__updatedAt": "2024-01-15T10:30:00Z",
- "__schemaId": "550e8400-e29b-41d4-a716-446655440000",
- "__id": "550e8400-e29b-41d4-a716-446655440001",
- "__schemaVersion": 1,
- "__createdAt": "2024-01-15T10:30:00Z",
- "customStringField": "string value",
- "customNumberField": 123.45,
- "customBooleanField": true,
- "customDateField": "2024-01-15",
- "customArrayField": [
- "item1",
- "item2"
], - "customObjectField": {
- "nestedKey": "nestedValue"
}
}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 | object (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 |
object (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 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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
required | Record UUID (string) or Record slug (string) Examples:
Record identifier - can be a UUID (RecordId) or a human-readable slug (RecordSlug, 6-40 characters) |
| 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. |
{- "meta": {
- "links": [
- {
- "url": "string",
- "rel": "first"
}
], - "limit": 0,
- "count": 0
}, - "data": [
- {
- "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7",
- "schemaId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "recordId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "businessProfileId": 48,
- "createdAt": "2020-07-07T09:03:13.390101Z",
- "createdBy": 1234,
- "modifiedAt": "2020-07-07T09:03:13.390101Z",
- "modifiedBy": 1234,
- "deletedAt": "2020-07-07T09:03:13.390101Z",
- "deletedBy": 1234,
- "fields": {
- "property1": {
- "value": "This is my first task"
}, - "property2": {
- "value": "This is my first task"
}
}, - "relations": {
- "property1": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}, - "property2": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}
}, - "permissionStatus": "private"
}
]
}Retrieve the details of a record version. The version can be identified by either a UUID (RecordVersionId) or a version number (integer).
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
required | Schema UUID (string) or Schema AppId (string) Examples:
Schema identifier - can be a UUID (SchemaId) or a human-readable string (Schema AppId/API name, 3-25 characters) |
required | Record UUID (string) or Record slug (string) Examples:
Record identifier - can be a UUID (RecordId) or a human-readable slug (RecordSlug, 6-40 characters) |
required | Record version UUID (string) or Record version Number (integer) Examples:
Record version identifier - can be a UUID (RecordVersionId) or a version number (integer) |
{- "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7",
- "schemaId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "recordId": "10c681d9-5afc-4ea1-ac97-dd1d22c7b045",
- "businessProfileId": 48,
- "createdAt": "2020-07-07T09:03:13.390101Z",
- "createdBy": 1234,
- "modifiedAt": "2020-07-07T09:03:13.390101Z",
- "modifiedBy": 1234,
- "deletedAt": "2020-07-07T09:03:13.390101Z",
- "deletedBy": 1234,
- "fields": {
- "property1": {
- "value": "This is my first task"
}, - "property2": {
- "value": "This is my first task"
}
}, - "relations": {
- "property1": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}, - "property2": {
- "type": "one",
- "recordId": "0790bd7c-8c2b-4e31-b01a-eee434331800"
}
}, - "permissionStatus": "private"
}