PATCH
/
api
/
v1
/
local_center_requests
/
{id}
/
approve
{
  "@context": "<string>",
  "@id": "<string>",
  "@type": "<string>",
  "id": 123,
  "user": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "id": 123,
    "firstName": "<string>",
    "lastName": "<string>",
    "fullName": "<string>",
    "logo": "<string>"
  },
  "requestedBy": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "id": 123,
    "firstName": "<string>",
    "lastName": "<string>",
    "fullName": "<string>",
    "logo": "<string>"
  },
  "currentLocalCenter": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "town": {
      "@context": "<string>",
      "@id": "<string>",
      "@type": "<string>",
      "id": 123,
      "name": "<string>"
    },
    "id": 123,
    "name": "<string>",
    "parent": {
      "@context": "<string>",
      "@id": "<string>",
      "@type": "<string>",
      "name": "<string>"
    }
  },
  "newLocalCenter": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "town": {
      "@context": "<string>",
      "@id": "<string>",
      "@type": "<string>",
      "id": 123,
      "name": "<string>"
    },
    "id": 123,
    "name": "<string>",
    "parent": {
      "@context": "<string>",
      "@id": "<string>",
      "@type": "<string>",
      "name": "<string>"
    }
  },
  "approvedBy": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "id": 123,
    "firstName": "<string>",
    "lastName": "<string>",
    "fullName": "<string>",
    "logo": "<string>"
  },
  "dateRequest": "2023-11-07T05:31:56Z",
  "dateApproved": "2023-11-07T05:31:56Z",
  "declinedBy": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "id": 123,
    "firstName": "<string>",
    "lastName": "<string>",
    "fullName": "<string>",
    "logo": "<string>"
  },
  "dateDeclined": "2023-11-07T05:31:56Z",
  "reason": "<string>",
  "declineReason": "<string>",
  "status": "<string>"
}

Path Parameters

id
string
required

LocalCenterRequest identifier

Body

application/merge-patch+json

The updated LocalCenterRequest resource

user
string<iri-reference>
Example:

"https://example.com/"

newLocalCenter
string<iri-reference>
Example:

"https://example.com/"

reason
string
declineReason
string | null

Response

LocalCenterRequest resource updated

@context
@id
string
@type
string
id
integer
user
object
requestedBy
object
currentLocalCenter
object | null
newLocalCenter
object
approvedBy
object | null
dateRequest
string<date-time>
dateApproved
string<date-time> | null
declinedBy
object | null
dateDeclined
string<date-time> | null
reason
string
declineReason
string | null
status
string