Skip to main content
PATCH
/
providers
/
{id}
/
resources
/
{resourceID}
Update Provider Resource
curl --request PATCH \
  --url https://api.example.com/providers/{id}/resources/{resourceID} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "resource": {
    "name": "<string>",
    "description": "<string>",
    "uri": "<string>",
    "mimeType": "text/plain",
    "size": 123,
    "annotations": {}
  }
}
'
{
  "resource": {
    "id": "kSuB9Gf6aD4",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "description": "<string>",
    "uri": "<string>",
    "mimeType": "text/plain",
    "size": 123,
    "annotations": {}
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Provider ID

resourceID
string
required

Resource ID

Body

application/json
resource
object

Response

200 - application/json

Provider Resource updated

resource
object