Create a new scope

Changed on

Creates a new scope

post/scopes

Request

  • Base URL
    https://api.jsr.io
  • Auth
    HTTP bearer

Request body

scopestring required

The name of a scope. This must not be @ prefixed.

descriptionstring required

The description of the scope.

Example request

{
  "scope": "denoland"
}

Response

OK

scopestring required

The name of a scope. This must not be @ prefixed.

descriptionstring required

The description of the scope.

createdAtstring date-time required

The date and time when the scope was created.

updatedAtstring date-time required

The date and time when the scope was last updated.

Example response

{
  "scope": "denoland"
}

Changes

    • breaking

      the request property became required

    • breaking

      the request property became required

    • warning

      changed the pattern of the request property from /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/ to ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      the response's property pattern was changed from /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/ to ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$ for the status

    • info

      added the required property to the response with the status

    • info

      added the new optional request property