Skip to content
Try For Free
Bizstim
Free tools
Pricing Contact Log in
Try For Free Book Demo
Home / API Reference / Skills
Resource

Skills

The skill list practitioners are tagged with.

The skill object

Every skill record carries these fields in this order, after object, which is always "skill".

FieldType
idinteger
namestring, up to 255 characters

Example

{
    "object": "skill",
    "id": 42,
    "name": "Example name"
}

List skills

GET /api/v1/skills

Parameters

ParameterInDescription
limitqueryRecords per page, 1 to 1000 (default 100).
offsetqueryRecords to skip (default 0).

Returns

A list envelope of skill records (see Pagination).

Request

curl "https://www.bizstim.com/api/v1/skills" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: application/json"

Response

{
    "object": "list",
    "total": 2,
    "limit": 100,
    "offset": 0,
    "has_more": false,
    "data": [
        {
            "object": "skill",
            "id": 42,
            "name": "Example name"
        },
        {
            "object": "skill",
            "id": 43,
            "name": "Example name"
        }
    ]
}

Retrieve a skill

GET /api/v1/skills/{id}

Parameters

ParameterInDescription
idpathThe record's id.

Returns

One skill record, or 404 not_found when no record with that id exists on your account.

Request

curl "https://www.bizstim.com/api/v1/skills/42" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: application/json"

Response

{
    "object": "skill",
    "id": 42,
    "name": "Example name"
}

Create a skill

POST /api/v1/skills

Request body

A JSON object (Content-Type: application/json) with these fields.

FieldTypeRequiredDescription
namestring, up to 255yesThe skill name. HTML is cleaned on save; names do not have to be unique.

Returns

201 with the new skill record. Practitioners and services are tagged with skills in the app. 400 invalid_request names the field to fix.

Request

curl -X POST "https://www.bizstim.com/api/v1/skills" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Algebra"
}'

Response (201)

{
    "object": "skill",
    "id": 42,
    "name": "Example name"
}

Rename a skill

PATCH /api/v1/skills/{id}

Parameters

ParameterInDescription
idpathThe record's id.

Request body

A JSON object (Content-Type: application/json) with these fields.

FieldTypeRequiredDescription
namestring, up to 255yesThe new name (cannot be emptied).

Returns

200 with the updated skill record. Every practitioner and service tagged with the skill keeps it. 400 invalid_request; 404 not_found.

Request

curl -X PATCH "https://www.bizstim.com/api/v1/skills/42" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Algebra 1"
}'

Response

{
    "object": "skill",
    "id": 42,
    "name": "Example name"
}

Delete a skill

DELETE /api/v1/skills/{id}

Parameters

ParameterInDescription
idpathThe record's id.

Returns

200 with {"id", "object": "skill", "deleted": true}. As in the app, the skill is removed for good and taken off every practitioner and service tagged with it. 404 not_found.

Request

curl -X DELETE "https://www.bizstim.com/api/v1/skills/42" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: application/json"

Response

{
    "id": 42,
    "object": "skill",
    "deleted": true
}