Answer Sets

Answer Sets Documentation

Answer Set [LIST]

Answer Set [LIST]

Request

Endpoint

GET /api/v2/coaching/answer_sets
Content-Type: application/vnd.api+json

Body

Parameters

Sorts

completed_at

Type Unknown

Description Sort by completed_at date

Required No

Filters

account_list_id

Type ID string

Description Filter by Account List; accepts an Account List id

Required No

completed

Type boolean

Description Filter by Completed; Accepts values "true", or "false"

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": [
    {
      "id": "e6d49750-5809-41fb-9f1c-58e6b042b8b5",
      "type": "coaching_answer_sets",
      "attributes": {
        "account_list_id": "980d6c9e-0e44-42e8-963d-d09b51d81360",
        "completed_at": "2021-11-22T14:37:41Z",
        "created_at": "2021-11-23T14:37:41Z",
        "updated_at": "2021-11-23T14:37:41Z",
        "updated_in_db_at": "2021-11-23T14:37:41Z"
      },
      "relationships": {
        "organization": {
          "data": {
            "id": "40461e07-f4ce-4f4d-9b80-c32b7802b957",
            "type": "organizations"
          }
        },
        "answers": {
          "data": [

          ]
        },
        "questions": {
          "data": [

          ]
        }
      }
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total_count": 1,
      "total_pages": 1
    },
    "sort": null,
    "filter": {
    }
  }
}

Fields

data

Type [AnswerSet]

Description An array of Answer Set Objects

Answer Set [POST]

Answer Set [POST]

Request

Endpoint

POST /api/v2/coaching/answer_sets
Content-Type: application/vnd.api+json

Body

{
  "data": {
    "type": "coaching_answer_sets",
    "attributes": {
      "updated_in_db_at": "2021-11-23 14:37:40 UTC"
    },
    "relationships": {
      "account_list": {
        "data": {
          "type": "account_lists",
          "id": "8528c880-b0fe-4e2b-8648-fd7ab1d853da"
        }
      },
      "organization": {
        "data": {
          "type": "organizations",
          "id": "fa0dfd99-2799-4103-87a2-4020f766b842"
        }
      }
    }
  }
}

Parameters

Attributes

account_list_id

Type ID string

Description Id of account list this answer set is on

Required No

completed_at

Type datetime

Description When the answer set was marked completed at

Required No

created_at

Type date

Description The timestamp of when this resource was created

Required No

updated_at

Type date

Description The timestamp of when this resource was last updated

Required No

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Required No

Relationships

account_list.data

Type Account List

Description The Account List that the answer set belongs to

Required No

answers.data

Type Coaching Answer

Description The answers that have been submitted to this set

Required No

organization.data

Type Organization

Description The Organization that the answer belongs to

Required No

questions.data

Type Coaching Question

Description The questions to be asked in this set (fetched through organization)

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
201 Created

Body

{
  "data": {
    "id": "0d1dcb53-69e2-4ee8-adc3-7f1acec0b2b7",
    "type": "coaching_answer_sets",
    "attributes": {
      "account_list_id": "8528c880-b0fe-4e2b-8648-fd7ab1d853da",
      "completed_at": null,
      "created_at": "2021-11-23T14:37:40Z",
      "updated_at": "2021-11-23T14:37:40Z",
      "updated_in_db_at": "2021-11-23T14:37:40Z"
    },
    "relationships": {
      "organization": {
        "data": {
          "id": "fa0dfd99-2799-4103-87a2-4020f766b842",
          "type": "organizations"
        }
      },
      "answers": {
        "data": [

        ]
      },
      "questions": {
        "data": [

        ]
      }
    }
  }
}

Fields

Attributes

account_list_id

Type ID string

Description Id of account list this answer set is on

completed_at

Type datetime

Description When the answer set was marked completed at

created_at

Type date

Description The timestamp of when this resource was created

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

answers.data

Type Coaching Answer

Description The answers that have been submitted to this set

organization.data

Type Organization

Description The Organization that the answer belongs to

questions.data

Type Coaching Question

Description The questions to be asked in this set (fetched through organization)

Answer Set [GET]

Answer Set [GET]

Request

Endpoint

GET /api/v2/coaching/answer_sets/2ff51466-069d-452d-bd81-a3224314e457
Content-Type: application/vnd.api+json

Body

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "2ff51466-069d-452d-bd81-a3224314e457",
    "type": "coaching_answer_sets",
    "attributes": {
      "account_list_id": "a2fd5ab0-04c0-4e8f-aac4-d1f6dfc30890",
      "completed_at": "2021-11-22T14:37:40Z",
      "created_at": "2021-11-23T14:37:40Z",
      "updated_at": "2021-11-23T14:37:40Z",
      "updated_in_db_at": "2021-11-23T14:37:40Z"
    },
    "relationships": {
      "organization": {
        "data": {
          "id": "887d0902-3a30-45b1-a12d-8d11290a3cf8",
          "type": "organizations"
        }
      },
      "answers": {
        "data": [

        ]
      },
      "questions": {
        "data": [

        ]
      }
    }
  }
}

Fields

Attributes

account_list_id

Type ID string

Description Id of account list this answer set is on

completed_at

Type datetime

Description When the answer set was marked completed at

created_at

Type date

Description The timestamp of when this resource was created

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

answers.data

Type Coaching Answer

Description The answers that have been submitted to this set

organization.data

Type Organization

Description The Organization that the answer belongs to

questions.data

Type Coaching Question

Description The questions to be asked in this set (fetched through organization)

Answer Set [PUT]

Answer Set [PUT]

Request

Endpoint

PUT /api/v2/coaching/answer_sets/1726509a-956f-40f9-90e9-04dbbe8b713d
Content-Type: application/vnd.api+json

Body

{
  "data": {
    "type": "coaching_answer_sets",
    "attributes": {
      "updated_in_db_at": "2021-11-23 14:37:40 UTC"
    },
    "relationships": {
      "account_list": {
        "data": {
          "type": "account_lists",
          "id": "659f64de-6293-4ac5-8586-936dd4cdc37e"
        }
      },
      "organization": {
        "data": {
          "type": "organizations",
          "id": "a84368c1-d24c-46cb-b0cd-a0d348271343"
        }
      }
    }
  }
}

Parameters

Attributes

account_list_id

Type ID string

Description Id of account list this answer set is on

Required No

completed_at

Type datetime

Description When the answer set was marked completed at

Required No

created_at

Type date

Description The timestamp of when this resource was created

Required No

overwrite

Type boolean

Description Only used for updating a record where you want to ignore the server's ' 'updated_in_db_at value and force overwrite the values for the record. ' 'Must be true to work.

Required No

updated_at

Type date

Description The timestamp of when this resource was last updated

Required No

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Required No

Relationships

account_list.data

Type Account List

Description The Account List that the answer set belongs to

Required No

answers.data

Type Coaching Answer

Description The answers that have been submitted to this set

Required No

organization.data

Type Organization

Description The Organization that the answer belongs to

Required No

questions.data

Type Coaching Question

Description The questions to be asked in this set (fetched through organization)

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "1726509a-956f-40f9-90e9-04dbbe8b713d",
    "type": "coaching_answer_sets",
    "attributes": {
      "account_list_id": "659f64de-6293-4ac5-8586-936dd4cdc37e",
      "completed_at": "2021-11-22T14:37:40Z",
      "created_at": "2021-11-23T14:37:40Z",
      "updated_at": "2021-11-23T14:37:40Z",
      "updated_in_db_at": "2021-11-23T14:37:40Z"
    },
    "relationships": {
      "organization": {
        "data": {
          "id": "a84368c1-d24c-46cb-b0cd-a0d348271343",
          "type": "organizations"
        }
      },
      "answers": {
        "data": [

        ]
      },
      "questions": {
        "data": [

        ]
      }
    }
  }
}

Fields

Attributes

account_list_id

Type ID string

Description Id of account list this answer set is on

completed_at

Type datetime

Description When the answer set was marked completed at

created_at

Type date

Description The timestamp of when this resource was created

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

answers.data

Type Coaching Answer

Description The answers that have been submitted to this set

organization.data

Type Organization

Description The Organization that the answer belongs to

questions.data

Type Coaching Question

Description The questions to be asked in this set (fetched through organization)

Last updated