Supported Formats

json

Errors

Code Description
401 Unauthorized. Include a WWW-Authenticate header field containing a challenge applicable to the requested resource.
403 Forbidden. The request was a valid request, but the server is refusing to respond to it. 403 error semantically means "unauthorized", i.e. the user does not have the necessary permissions for the resource.
404 Not Found. The requested resource could not be found.
422 Unprocessable Entity. The request was well-formed but was unable to be followed due to semantic errors.
500 Internal Server Error. An unexpected condition was encountered.

Examples

request:
  {
    "product_group": {
      "group_id": 8,
      "member_id": 7,
      "sort_order": 5
    }
  }

response:
  {
      "id": 2,
      "group_id": 8,
      "member_id": 7,
      "sort_order": 5
  }

Params

Param name Description
product_group
required

Validations:

  • Must be a Hash

product_group[group_id]
required

Group product ID

Validations:

  • Must be a Integer

product_group[member_id]
required

Group member product ID

Validations:

  • Must be a Integer

product_group[sort_order]
optional , nil allowed

Group member ordering

Validations:

  • Must be a Integer