Patch Account Endpoints

patch

{baseUrl}/v1/register/{accountContractAddress}

Adds, updates, or deletes registered endpoints for the specified account contract.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Example:
{
    "upsertEndpoints":[
        {
            "path":"initializeCBDCToken",
            "httpMethod":"POST",
            "contractMethod":{
                "name":"initializeCBDCToken",
                "signature":"initializeCBDCToken((string,string,string,string,string,string,string[],uint8,(uint256,bool),(bool)))"
            },
            "args":[
                "token"
            ]
        }
    ],
    "deleteEndpoints":[
        {
            "path":"oldEndpoint",
            "httpMethod":"POST"
        }
    ]
}
Nested Schema : deleteEndpoints
Type: array
Show Source
Example:
[
    {
        "path":"oldEndpoint",
        "httpMethod":"POST"
    }
]
Nested Schema : upsertEndpoints
Type: array
Show Source
Example:
[
    {
        "path":"initializeCBDCToken",
        "httpMethod":"POST",
        "contractMethod":{
            "name":"initializeCBDCToken",
            "signature":"initializeCBDCToken((string,string,string,string,string,string,string[],uint8,(uint256,bool),(bool)))"
        },
        "args":[
            "token"
        ]
    }
]
Nested Schema : items
Type: object
Show Source
Example:
{
    "path":"oldEndpoint",
    "httpMethod":"POST"
}
Nested Schema : items
Type: object
Show Source
Example:
{
    "path":"initializeCBDCToken",
    "httpMethod":"POST",
    "contractMethod":{
        "name":"initializeCBDCToken",
        "signature":"initializeCBDCToken((string,string,string,string,string,string,string[],uint8,(uint256,bool),(bool)))"
    },
    "args":[
        "token"
    ]
}
Nested Schema : args
Type: array
Show Source
Example:
[
    "token"
]
Nested Schema : contractMethod
Type: object
Show Source
  • Example: initializeCBDCToken
  • Example: initializeCBDCToken((string,string,string,string,string,string,string[],uint8,(uint256,bool),(bool)))
Example:
{
    "name":"initializeCBDCToken",
    "signature":"initializeCBDCToken((string,string,string,string,string,string,string[],uint8,(uint256,bool),(bool)))"
}
Security
Back to Top

Response

Supported Media Types

200 Response

Contract template updated successfully.
Body ()
Root Schema : Register_SuccessResponse
Type: object
Show Source
Nested Schema : RegisteredSchema
Type: object
Show Source
Nested Schema : combinedApis
Type: array
Show Source
Nested Schema : endpoints
Type: array
Show Source
Nested Schema : readConfigs
Type: object
Additional Properties Allowed: true
Nested Schema : writeConfigs
Type: object
Additional Properties Allowed: true
Nested Schema : items
Type: object
Additional Properties Allowed: true
Nested Schema : items
Type: object
Additional Properties Allowed: true

400 Response

The wrapper rejected the request before it could complete a downstream call.
Body ()
Root Schema : Wrapper_Error
Type: object
Show Source

401 Response

A valid authorization header is required.
Body ()
Root Schema : Wrapper_Error
Type: object
Show Source

404 Response

The requested resource or registered contract schema was not found.
Body ()
Root Schema : Wrapper_Error
Type: object
Show Source

415 Response

Content-Type must be application/json.
Body ()
Root Schema : Wrapper_Error
Type: object
Show Source

502 Response

The wrapper could not complete the downstream call.
Body ()
Root Schema : Wrapper_Error
Type: object
Show Source
Back to Top