curl --location 'https://api.aworld.cloud/dashboard/v1/workspace-codes/' \
--header 'x-external-user-id;' \
--header 'x-user-id;'{
"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"
}