POST
/
products
/
{product_id}
/
client_types
Attach a client type to this API Product
curl --request POST \
  --url http://localhost:3001/portal-api/products/{product_id}/client_types \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ID": 11
}'
{
  "Name": "foo",
  "ID": 11,
  "Description": "Web application",
  "GrantType": "authorization_code",
  "OktaAppType": "web",
  "CreatedAt": "2023-06-23 21:02",
  "UpdatedAt": "2023-06-23 21:02"
}

Authorizations

Authorization
string
header
required

Path Parameters

product_id
integer
required

UID of an API Product

Example:

1

Body

application/json
ID
integer

UID of this client type

Example:

11

Response

Client type is successfully attached to the product

Name
string

Name of this client type

Example:

"foo"

ID
integer

UID of this client type

Example:

11

Description
string

description on the client type

Example:

"Web application"

GrantType
enum<string>

OAuth2.0 grant types that are allowed for this client type

Available options:
authorization_code,
client_credentials,
device_code,
pkce,
password,
implicit,
refresh_token
Example:

"authorization_code"

OktaAppType
enum<string>

The type of client application for Okta

Available options:
browser,
native,
web,
service
Example:

"web"

CreatedAt
string

Date-time when a client type is created

Example:

"2023-06-23 21:02"

UpdatedAt
string

Date-time when a client type was updated the last time

Example:

"2023-06-23 21:02"