Register
POST/2.2.1/credentials
Registers your platform. Send it with the registration token. In the body, token is
the token VoltBras will use to call you.
Before answering, VoltBras reads your versions URL and your 2.2.1 endpoints with that token. The answer carries your credentials token, and the registration token stops working.
A failed registration stores nothing, so you can send the POST again with the same registration token.
Request
Responses
- 200
- 201
- 400
- 401
- 405
Nothing was stored: 2001 for an invalid body or a role with a VoltBras party
identity; 3001, 3002, or 3003 when your versions cannot be read, lack 2.2.1, or
lack a credentials endpoint; 3000 when you can see no VoltBras party, or VoltBras had
an unexpected error.
Registered. VoltBras's Credentials carry your credentials token.
The body is not valid JSON.
Missing or unknown token, or the registration token on another module.
Response Headers
The method does not match your token: the registration token allows GET and POST, and
a credentials token allows GET, PUT, and DELETE. The Allow header lists the methods.
A POST also gets it when a concurrent POST already registered with the same token.