{"_id":"582789abbe5c080f00a5a833","project":"568bdc1483d2061900d86cdc","user":"573b7f42fdc9d320001b777d","parentDoc":null,"version":{"_id":"582789aabe5c080f00a5a7fe","__v":10,"project":"568bdc1483d2061900d86cdc","createdAt":"2016-11-12T21:29:14.915Z","releaseDate":"2016-11-12T21:29:14.915Z","categories":["582789abbe5c080f00a5a7ff","582789abbe5c080f00a5a800","582789abbe5c080f00a5a801","582789abbe5c080f00a5a802","582789abbe5c080f00a5a803","582789abbe5c080f00a5a804","582789abbe5c080f00a5a805","582789abbe5c080f00a5a806","582789abbe5c080f00a5a807","582789abbe5c080f00a5a808","5827ea984ca29e0f00137a9e","583df597887db62f00644283","583df5d9c622791900e78da5","5845cd8763c11b250037967d","5845d13063c11b2500379681","5859e859e3306d1900126725","587aeb9a01cf3a0f008359eb","587c422af45e2d0f005e200d","587d84dc82f6f30f004ceee5"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"beta2","version_clean":"0.0.0","version":"0"},"__v":0,"category":{"_id":"582789abbe5c080f00a5a806","version":"582789aabe5c080f00a5a7fe","project":"568bdc1483d2061900d86cdc","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-05-17T20:31:36.079Z","from_sync":false,"order":8,"slug":"clients","title":"Clients"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-31T03:11:13.445Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"POST https://ioe.droplit.io/api/clients/L574cea940ac9f7726607b96a/tokens HTTP/1.1\nauthorization: AUTH_TOKEN\ncontent-type: application/json\n\n{\n  \"description\": \"primary access token\"\n}","language":"http"}]},"method":"post","results":{"codes":[{"status":201,"language":"json","code":"{\n  \"id\": \"574d09840ac9f7726607b96b\",\n  \"token\": \"PsQJ547T0q4IHVD8C2fuYzbBXdVvHGT8BAeDp3cXPlt2jnfWM+ZkAlCd7rG4bhug1TbHRx5bWlH5WsOvrx3MU08oUkhTBZG53hTXhO450LAvN3Hg7AE9M3BkJ3gIL+Em\",\n  \"ownerId\": \"L574cea940ac9f7726607b96a\",\n  \"type\": \"account\",\n  \"description\": \"primary access token\",\n  \"createdAt\": \"2016-05-31T01:34:48.265Z\"\n}"},{"status":401,"language":"text","code":""},{"status":403,"language":"text","code":""},{"status":404,"language":"text","code":"Client with id L574cea940ac9f7726607b96b does not exist."}]},"settings":"572c39957c8eff0e00aaa18b","auth":"required","params":[{"_id":"574d024ccf99610e00ef7f81","ref":"","in":"path","required":true,"desc":"client id","default":"","type":"string","name":"id"},{"_id":"574d024ccf99610e00ef7f80","ref":"","in":"body","required":false,"desc":"a description of the token","default":"","type":"string","name":"description"}],"url":"/clients/:id/tokens"},"isReference":true,"order":6,"body":"","excerpt":"Create a client token","slug":"clients-create-token","type":"endpoint","title":"Create Token"}

postCreate Token

Create a client token

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
string
client id

Body Params

description:
string
a description of the token

Examples


Result Format


User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}