HTTP/1.1 200
{
"personTitles" : [ {
"id" : 8,
"title" : "Sir"
}, {
"id" : 9,
"title" : "Madam"
} ]
}
Parties representing people can have a title such as 'Mr' or 'Miss'. It is possible to create new custom titles and delete existing custom titles. For a full description of the model see the Custom Title model definition.
List custom titles for this Capsule account.
Returns HTTP status code 200
. The body of the response will contain an object with a single property personTitles
which is an array of Title objects.
HTTP/1.1 200
{
"personTitles" : [ {
"id" : 8,
"title" : "Sir"
}, {
"id" : 9,
"title" : "Madam"
} ]
}
Create a new custom title. The body must contain an object with a single property personTitle
which must be a Title object. Capsule accounts can have at most 50 custom titles. This operation requires the authenticated user has an Administrator role on the Capsule account.
{
"personTitle" : {
"title" : "Madam"
}
}
Returns HTTP status code 201
. The body of the response will contain the title as it was stored in Capsule.
HTTP/1.1 201
{
"personTitle" : {
"id" : 8,
"title" : "Madam"
}
}
Delete a custom title from Capsule. Titles can only be deleted if they are not in use by any party. This operation requires the authenticated user has an Administrator role on the Capsule account.
Returns HTTP status code 204
. The response will contain an empty body.
HTTP/1.1 204