Record types

List object types' record types

GET
https://api.searchsoftware.nl/v4/records/{plural_slug}/types

Lists the active types of one record type, such as Candidate and Contact for people, for PUT /v4/records/{plural_slug}/{id}/types. id is the prefixed form the record's types attribute uses. Requires <plural_slug>:read; records:read also covers custom types. Archived record definitions still list.

Parameters

plural_slugstringrequiredpath

Plural slug from GET /v4/records, such as people.

Response

Types

Response fields application/json
statusstringokrequired
Example
ok
Show child attributes
idstringrequired
Example
person_type:Ef56
string_idstringrequired
Example
candidate
namestringrequired
Example
Candidate
name_pluralstringrequired
Example
Candidates
401UnauthorizedErrorResponse

Invalid credential

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_API_KEY",
    "status_code": 401,
    "message": "Invalid API key"
  }
}
403ForbiddenErrorResponse

Missing required scope

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "FORBIDDEN",
    "status_code": 403,
    "message": "Insufficient scope"
  }
}
404Not FoundErrorResponse

Unknown record type

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "NOT_FOUND",
    "status_code": 404,
    "message": "Record not found"
  }
}

Authorization

bearer_authhttp (bearer) in header

API key or OAuth access token in Authorization header

Scopes: <plural_slug>:read

oauth2_authoauth2

OAuth authorization code flow with mandatory S256 PKCE.

Scopes: <plural_slug>:read

apikey_authapiKey in query

API key in query string

Scopes: <plural_slug>:read