Skip to main content
POST
/
ims
/
oneroster
/
resources
/
v1p2
/
resources
Create a new Resource
curl --request POST \
  --url https://api.alpha-1edtech.ai/ims/oneroster/resources/v1p2/resources/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "resource": {
    "title": "<string>",
    "vendorResourceId": "<string>",
    "sourcedId": "<string>",
    "status": "active",
    "dateLastModified": "2023-11-07T05:31:56Z",
    "metadata": {
      "fail_fast": {
        "consecutive_failures": 3,
        "stagnation_limit": 5
      }
    },
    "roles": [
      "primary"
    ],
    "importance": "primary",
    "vendorId": "<string>",
    "applicationId": "<string>"
  }
}
'
{
  "sourcedIdPairs": {
    "suppliedSourcedId": "<string>",
    "allocatedSourcedId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
resource
object
required

Response

Resource successfully created

sourcedIdPairs
object
required