Contact moments
Registrations of contact between the organization and third parties
Accept header for requests to Contact moments
application/vnd.procurios.contact_moment+json; version=1
Contact moments GET
Scope:
Get contact moments
Parameters
Parameter | Type | Description |
---|---|---|
page | int | The api will provide 25 results per page |
since | datetime | Only get results created or updated since yyyy-mm-ddThh:mm:ss |
relationIds | int[] | Limit the results to the given relationIds, as a single integer, comma-separated list of integers, or array of integers |
Schema for a certain type GET
Scope:
Get the JSON schema for registering contact moments of a type
Contact moment types GET
Scope:
Get a list of available contact moment types
Tags available to contact moments GET
Scope:
Get the available tags to use in contact moments
Contact moment POST
Scope:
Create a new contact moment of a type
Validation
{
"$schema": "http:\/\/json-schema.org\/draft-07\/schema#",
"title": "Contact moment",
"type": "object",
"properties": {
"contactMomentId": {
"title": "Contact moment ID",
"description": "The unique ID for the contact moment",
"type": "integer"
},
"subject": {
"title": "Subject",
"description": "What the contact moment was about",
"type": "string"
},
"dateTime": {
"title": "Date and time",
"description": "yyyy-mm-dd hh:mm:ss",
"type": "string"
},
"senderId": {
"title": "Sender ID",
"description": "The Procurios ID of the relation that initiated contact",
"type": "integer"
},
"recipients": {
"title": "Recipient",
"description": "The Procurios IDs of the relations that were contacted",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "integer"
}
},
"action_code": {
"title": "Entered via action",
"type": "integer"
},
"reference": {
"title": "A reference for this contact moment in the calling system.",
"type": "string",
"maxLength": 255
},
"tagIds": {
"title": "Tag Ids",
"description": "The ids of the labels attached to the contact moment for extra information",
"type": "array",
"minItems": 0,
"uniqueItems": true,
"items": {
"type": "integer"
}
}
},
"required": [
"subject",
"senderId",
"recipients"
]
}