Help Center> Media Processing Center> API Reference> Tenant Subscription> Subscribing to the Media Transcoding Service as a Tenant
Updated on 2024-03-14 GMT+08:00

Subscribing to the Media Transcoding Service as a Tenant

Function

A tenant subscribes to the media transcoding service.

Calling Method

For details, see Calling APIs.

URI

PUT /v1/{project_id}/tenant/access

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain the project ID, see Obtaining the Project ID](tag:hc,hk).

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

No

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

is_open

No

Boolean

Whether the service has been subscribed to

  • false: no

  • true: yes

agreement_version

No

Integer

Service agreement version.

Response Parameters

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code

error_msg

String

Error description

Example Requests

{
  "is_open" : false,
  "agreement_version" : 1
}

Example Responses

None

Status Codes

Status Code

Description

200

If the request is successful, 200 OK No Content is returned.

400

The information is returned when the request failed.

Error Codes

See Error Codes.