Aws contracts

Create AWS contract from token

This endpoint should be called after being redirected from awsCustomerRedirect. The previous redirect should have stored the token for usage. This endpoint attaches the token (and such the customer details) to the selected project.

POSThttps://cloud-api.calyptia.com/v1/projects/{projectID}/aws-contracts
Authorization
Path parameters
projectID*string (uuid)
Body
amazonMarketplaceToken*string
Response

No Content

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/projects/{projectID}/aws-contracts', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "amazonMarketplaceToken": "text"
    }),
});
const data = await response.json();