SettingsGet a barrier type

Get a barrier type

Would resolve a BarrierID (as stored on opportunities) to the barrier's GUID and name. Note the id mismatch of this controller: this read takes the integer BarrierID, while update and delete take the GUID Id.

Behaviour:

  • Idempotent.
  • Safe to retry.
  • Changes are visible to the next read immediately.

See also: GET /v1/barrier

curl -X GET "https://app3.timelog.com/your-account/api/v1/barrier/123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "Properties": {
    "BarrierID": 123,
    "Id": "123e4567-e89b-12d3-a456-426614174000",
    "Name": "John Doe"
  },
  "Links": [
    {
      "Href": "example_string",
      "Rel": "example_string"
    }
  ],
  "Actions": [
    {}
  ]
}
GET
/v1/barrier/{barrierId}
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp). The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user. > Not yet documented: how to obtain a token. > Not yet documented: token lifetime.

OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp). The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user. > Not yet documented: how to obtain a token. > Not yet documented: token lifetime.
path
barrierIdinteger
Required

BarrierRead.BarrierID (integer), not the GUID. Refers to BarrierRead.BarrierID. Look up valid values with GET /v1/barrier.

Format: int32
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp).

The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user.

Not yet documented: how to obtain a token.

Not yet documented: token lifetime.

Path Parameters

barrierIdinteger
Required

BarrierRead.BarrierID (integer), not the GUID.

Refers to BarrierRead.BarrierID. Look up valid values with GET /v1/barrier.

Responses

Propertiesobject

A CRM barrier type: an entry of the account-wide list of reasons that hold back a sales opportunity (system administration page "Barrier management in TimeLog CRM"). Opportunities reference barriers by BarrierID. A barrier is NOT a time-registration or period lock: it is stored only on opportunities and used as a filter of the Reporting API's opportunity export. It blocks nothing. The active flag that exists in storage is not part of this model.

Linksarray
Actionsobject[]