Help Center/ ServiceStage/ API Reference (Kuala Lumpur Region)/ CSE API/ Modifying Static Information About a Microservice
Updated on 2023-06-26 GMT+08:00

Modifying Static Information About a Microservice

Function

After you create static information about a microservice, you can update some fields of the microservice. However, you must transfer the struct of extended attributes for each update.

URI

PUT /v4/{project_id}/registry/microservices/{serviceId}/properties

Table 1 Path parameters

Parameter

Type

Mandatory

Description

project_id

String

Yes

Fixed value: default.

serviceId

String

Yes

Microservice ID, which must be unique.

The value must be 1 to 64 characters long.

Regular expression: ^.*$

Request

Request parameters

Table 2 Request body parameters

Parameter

Type

Mandatory

Description

properties

Map<String, String>

No

Extended attribute. You can customize a key and value.

Response

Response parameters

None

Example

Example request

{
    "properties": {
	    "attr1": "value1"
    }
}

Example response

None

Status Code

See Status Codes.

Error Code

See CSE Error Codes.