curl --location --request POST '/workspace-codes' \
--header 'x-idempotency-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "string",
"role": "owner",
"redeemContext": "ANY",
"metadata": {
"property1": "string",
"property2": "string"
},
"policy": "LIMITED",
"maxUses": 1,
"expiresInDays": 1,
"expiresAt": "2019-08-24T14:15:22.123Z"
}'{
"workspaceCodeId": "string",
"code": "string",
"workspaceId": "stringstri",
"accountId": "stringstri",
"role": "owner",
"redeemContext": "ANY",
"metadata": {
"property1": "string",
"property2": "string"
},
"policy": "LIMITED",
"maxUses": 1,
"usageCount": 0,
"status": "ACTIVE",
"expiresAt": "2019-08-24T14:15:22.123Z",
"createdBy": "string",
"actorType": "user",
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
}