Survey Field Options

Updates a survey field option

Changed on

Update a survey field option.

patch/api/v2/survey_field_options/{id}

Request

  • Base URL
    https://developer.productive.io (the document declares no server; this is the origin it was published from)
  • URL
    https://developer.productive.io/api/v2/survey_field_options/{id}
  • Auth
    none declared

Path parameters

idstring required

The ID of the survey field option to update.

Request body

Example request

{
  "data": {
    "type": "survey_field_options",
    "attributes": {
      "label": "Very Satisfied",
      "value": "5"
    },
    "relationships": {
      "survey_field": {
        "data": {
          "type": "survey_fields",
          "id": "45"
        }
      }
    }
  }
}

Response

Single survey field option

Example response

{
  "data": {
    "id": "123",
    "type": "survey_field_options",
    "attributes": {
      "label": "Very Satisfied",
      "value": "5",
      "position": 1
    },
    "relationships": {
      "survey_field": {
        "data": {
          "type": "survey_fields",
          "id": "45"
        }
      }
    }
  },
  "included": []
}

Changes

    • warning

      added the new bad_decimal_format enum value to the // response property for the response status

    • warning

      added the new non_finite_number enum value to the // response property for the response status

    • warning

      added the new null_bytes_in_params enum value to the // response property for the response status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • breaking

      response property data/attributes/color_id list-of-types was widened by adding types null and string to media type application/vnd.api+json of response 200

    • breaking

      the // response's property type changed from string to no type, and format from date-time to no format for status

    • warning

      deleted the header request parameter X-Organization-Id

    This list may be incomplete.