Skip to main content
PATCH
/
v1
/
users
/
api
/
client
/
status
Java (SDK)
package hello.world;

import java.lang.Exception;
import org.openapis.openapi.AriesJava;
import org.openapis.openapi.models.errors.ErrorResponse;
import org.openapis.openapi.models.operations.UpdateClientStatusRequest;
import org.openapis.openapi.models.operations.UpdateClientStatusResponse;

public class Application {

    public static void main(String[] args) throws ErrorResponse, Exception {

        AriesJava sdk = AriesJava.builder()
                .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
            .build();

        UpdateClientStatusRequest req = UpdateClientStatusRequest.builder()
                .clientId("<id>")
                .status("<value>")
                .build();

        UpdateClientStatusResponse res = sdk.clients().updateStatus()
                .request(req)
                .call();

        if (res.object().isPresent()) {
            // handle response
        }
    }
}
{
  "client_id": "<string>",
  "message": "<string>",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://finance.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
client_id
string
required

OAuth2 client ID

status
string
required

Client status: 'active', 'inactive', or 'suspended'

Response

Client status updated successfully

client_id
string

OAuth2 client ID

message
string

Status update message

updated_at
string<date-time>

Status update timestamp