Updated on 2024-12-30 GMT+08:00

Deleting an Organization Event

This API is used to synchronize deleted organizations to the application system.

URL

POST https://{app_domain}/callback

Request Header

Authorization: Bearer {access_token}

Request Parameters

Table 1 Request parameter

Parameter

Type

Description

id

String

  • Organization ID of a downstream enterprise application.
  • After an organization is successfully synchronized by referring to Adding an Organization Event, an organization is created for a downstream enterprise application. At the same time, an organization ID is generated and sent back to OneAccess as the unique identifier of the organization.

Response Parameters

Table 2 Response parameters

Parameter

Type

Description

code

String

Return code. 200 indicates success.

message

Integer

Description of the error cause.

Example Request

  • Example request with message signature and encryption enabled:
    {
    	"nonce": "AmgjjEAJbrMzWmUw",
    	"timestamp": 15093849585,
    	"eventType": "DELETE_ORGANIZATION ",
    	"data": "6lrHydJIXEWxQhUa3UqsXHWsDZ5LTAo/xU3zhjq9H3syCuFYDYKg==",
    	"signature": "K08yDiTEc094KoccOY+VYLQFxxQ="
    }
  • The decrypted JSON string in the request body follows this format:
    {
    	"id": "6c5bb468-14b2-4183-baf2-06d523e03bd3"
    }

Example Response

Status code: 200

Request successful.
{
	"code": "200",
	"message": "success"
}