Create an Api Resource for the given organisation and Authorisation Server
POST
/organisations/{OrganisationId}/authorisationservers/{AuthorisationServerId}/apiresources
curl \
-X POST https://matls-api.sandbox.raidiam.io/organisations/{OrganisationId}/authorisationservers/{AuthorisationServerId}/apiresources \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "x-fapi-auth-date: string" \
-H "x-fapi-customer-ip-address: string" \
-H "x-fapi-interaction-id: string" \
-H "x-customer-user-agent: string" \
-d '{"ApiCertificationUri":"https://example.com","ApiEndpoint":"https://raidiam.io/cb","ApiFamilyType":"string","ApiVersion":"string","CertificationStartDate":"string","CertificationStatus":"Awaiting Certification","Status":"Active"}'
Request examples
# Headers
x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-fapi-interaction-id: string
x-customer-user-agent: string
# Payload
{
"ApiCertificationUri": "https://example.com",
"ApiEndpoint": "https://raidiam.io/cb",
"ApiFamilyType": "string",
"ApiVersion": "string",
"CertificationStartDate": "string",
"CertificationStatus": "Awaiting Certification",
"Status": "Active"
}
Response examples (201)
# Headers
x-fapi-interaction-id: 73cac523-d3ae-2289-b106-330a6218710d
# Payload
{
"ApiCertificationUri": "https://example.com",
"ApiFamilyType": "string",
"ApiResourceId": "string",
"ApiVersion": "string",
"CertificationExpirationDate": "string",
"CertificationStartDate": "string",
"CertificationStatus": "Awaiting Certification",
"FamilyComplete": true,
"Status": "Active"
}
Response examples (400)
# Headers
x-fapi-interaction-id: 73cac523-d3ae-2289-b106-330a6218710d
# Payload
{
"errors": [
"string"
]
}