insert

Description

Enables you to add a new config to the configs list. This operation requires passing an instance of the Config object with the ID and value fields set. An update is performed if the ID that you pass already exists.

Request

POST https://api.smartrecruiters.com/v1/configs

Path Parameters

n/a

Query Parameters

n/a

Request Body

Config object. Both id and value fields are required.

Response Body

Instance of Config

Example request

curl -i -H "X-SmartToken:abc123" -H "Content-Type: application/json;charset=utf-8" -d @body.json -X POST https://api.smartrecruiters.com/v1/configs

Example request body

1
2
3
4
{
    "id": "assessmentNotificationUrl",
    "value": "http://api.partnercompany.com/notifications"
}

Example response

1
2
3
4
{
    "id": "assessmentNotificationUrl",
    "value": "http://api.partnercompany.com/notifications"
}