To update a feature with a given ID, use the following request:

PATCH /products/product_id/features/id

where:

  • product_id (integer) is the product ID.
  • id (integer) is the feature ID.


Request JSON Objects

Valid JSON parameters include the following.

ParameterTypeRequiredDefinition

name 

stringYesFeature name


Example request

POST /products/1/features/1 HTTP/1.1
Content-Type: application/json
Authorization: Bearer f794846b7c26621688e1e06164975b4eae8ce2f6

{
	"name": "Basic"
}

Response

The LAC REST API returns the standard HTTP response codes described in the following table.

Status CodeDescription
200 OKFeature updated.

400 Bad Request

Invalid data.
403 ForbiddenInvalid or expired token provided.
404 Not FoundFeature ID does not exist.

Example Response

HTTP/1.1 200 OK
Content-Type: application/json

{
	"id": "1",
	"name": "Basic"
}
  • No labels