List Record types

Description

Retrieve a list of record_types.

Request

HTTP Method: GET

Query Parameter Description
team_id ID of team to which the record type belongs.
per_page Optional Set the number of results returned per page. Defaults to 20.
page Optional The page number of results to fetch.
curl -X GET \
  https://<<META.tenant.domain>>/api/v1/record_types?team_id=<<team_id>> \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>'

Response

A successful request will return a JSON Array describing record types in the specified team.

Field description

Parameter Description
id The record type ID.
name The record type name.
team_id ID of team to which the record type belongs.

Sample response

{
  "record_types": [
    {
      "id": 1,
      "name": "Credential record type",
      "team_id": 1
    },
    {
      "id": 2,
      "name": "Resource record type",
      "team_id": 1
    },
    {
      "id": 3,
      "name": "Story record type",
      "team_id": 1
    }
  ],
  "meta": {
    "current_page": "https://<<META.tenant.domain>>/api/v1/record_types?per_page=20&page=1",
    "previous_page": null,
    "next_page": null,
    "per_page": 20,
    "pages": 1,
    "count": 3
  }
}
Was this helpful?