API 1.0 / Cost centers

POST /cost_centers

Create a cost center

This method has the URL https://api.toptranslation.com/v1/cost_centers and returns a cost center.

Required arguments

access_token
Token to authenticate a user
String
name
Name of the cost center
String

Response

Returns a cost center object.

{
  meta: {
    status: 200
  },
  data: {
    identifier: '8c57bb8b-68fb-312d-b3c6-f6423239518',
    name: 'IT Department',
    created_at: '2016-12-29 12:23:45'
  }
}

Errors

403 - User not authenticated
User is not allowed to access the resource or execute the method.