Skip to content

Checklists Admin Question Dependencies

Operations Summary

Method Endpoint Description
GET /api/checklists-admin-question-dependencies/ List Checklists Admin Question Dependencies
GET /api/checklists-admin-question-dependencies/{uuid}/ Retrieve
POST /api/checklists-admin-question-dependencies/ Create
PUT /api/checklists-admin-question-dependencies/{uuid}/ Update
PATCH /api/checklists-admin-question-dependencies/{uuid}/ Partial Update
DELETE /api/checklists-admin-question-dependencies/{uuid}/ Delete

List Checklists Admin Question Dependencies

1
2
3
4
http \
  GET \
  https://api.example.com/api/checklists-admin-question-dependencies/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.checklists_admin_question_dependencies import checklists_admin_question_dependencies_list # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = checklists_admin_question_dependencies_list.sync(client=client)

for item in response:
    print(item)
  1. API Source: checklists_admin_question_dependencies_list
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import { checklistsAdminQuestionDependenciesList } from 'waldur-js-client';

try {
  const response = await checklistsAdminQuestionDependenciesList({
  auth: "Token YOUR_API_TOKEN"
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Description
depends_on_question_uuid string (uuid)
page integer A page number within the paginated result set.
page_size integer Number of results to return per page.
question_uuid string (uuid)

200 -

The response body is an array of objects, where each object has the following structure:

Field Type Description
uuid string (uuid)
url string (uri)
question string (uri)
question_name string
depends_on_question string (uri)
depends_on_question_name string
required_answer_value any The answer value(s) that make this question visible
operator string
Enum: equals, not_equals, contains, in, not_in

Retrieve

1
2
3
4
http \
  GET \
  https://api.example.com/api/checklists-admin-question-dependencies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.checklists_admin_question_dependencies import checklists_admin_question_dependencies_retrieve # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = checklists_admin_question_dependencies_retrieve.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client
)

print(response)
  1. API Source: checklists_admin_question_dependencies_retrieve
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { checklistsAdminQuestionDependenciesRetrieve } from 'waldur-js-client';

try {
  const response = await checklistsAdminQuestionDependenciesRetrieve({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)

200 -

Field Type Description
uuid string (uuid)
url string (uri)
question string (uri)
question_name string
depends_on_question string (uri)
depends_on_question_name string
required_answer_value any The answer value(s) that make this question visible
operator string
Enum: equals, not_equals, contains, in, not_in

Create

1
2
3
4
5
6
7
http \
  POST \
  https://api.example.com/api/checklists-admin-question-dependencies/ \
  Authorization:"Token YOUR_API_TOKEN" \
  question="https://api.example.com/api/question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
  depends_on_question="https://api.example.com/api/depends-on-question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
  required_answer_value=null
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.question_dependency_request import QuestionDependencyRequest # (1)
from waldur_api_client.api.checklists_admin_question_dependencies import checklists_admin_question_dependencies_create # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = QuestionDependencyRequest(
    question="https://api.example.com/api/question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    depends_on_question="https://api.example.com/api/depends-on-question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    required_answer_value=null
)
response = checklists_admin_question_dependencies_create.sync(
    client=client,
    body=body_data
)

print(response)
  1. Model Source: QuestionDependencyRequest
  2. API Source: checklists_admin_question_dependencies_create
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
import { checklistsAdminQuestionDependenciesCreate } from 'waldur-js-client';

try {
  const response = await checklistsAdminQuestionDependenciesCreate({
  auth: "Token YOUR_API_TOKEN",
  body: {
    "question": "https://api.example.com/api/question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    "depends_on_question": "https://api.example.com/api/depends-on-question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    "required_answer_value": null
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Field Type Required Description
question string (uri)
depends_on_question string (uri)
required_answer_value any The answer value(s) that make this question visible
operator string
Enum: equals, not_equals, contains, in, not_in

201 -

Field Type Description
uuid string (uuid)
url string (uri)
question string (uri)
question_name string
depends_on_question string (uri)
depends_on_question_name string
required_answer_value any The answer value(s) that make this question visible
operator string
Enum: equals, not_equals, contains, in, not_in

Update

1
2
3
4
5
6
7
http \
  PUT \
  https://api.example.com/api/checklists-admin-question-dependencies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN" \
  question="https://api.example.com/api/question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
  depends_on_question="https://api.example.com/api/depends-on-question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
  required_answer_value=null
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.question_dependency_request import QuestionDependencyRequest # (1)
from waldur_api_client.api.checklists_admin_question_dependencies import checklists_admin_question_dependencies_update # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = QuestionDependencyRequest(
    question="https://api.example.com/api/question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    depends_on_question="https://api.example.com/api/depends-on-question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    required_answer_value=null
)
response = checklists_admin_question_dependencies_update.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

print(response)
  1. Model Source: QuestionDependencyRequest
  2. API Source: checklists_admin_question_dependencies_update
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
import { checklistsAdminQuestionDependenciesUpdate } from 'waldur-js-client';

try {
  const response = await checklistsAdminQuestionDependenciesUpdate({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  },
  body: {
    "question": "https://api.example.com/api/question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    "depends_on_question": "https://api.example.com/api/depends-on-question/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    "required_answer_value": null
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)
Field Type Required Description
question string (uri)
depends_on_question string (uri)
required_answer_value any The answer value(s) that make this question visible
operator string
Enum: equals, not_equals, contains, in, not_in

200 -

Field Type Description
uuid string (uuid)
url string (uri)
question string (uri)
question_name string
depends_on_question string (uri)
depends_on_question_name string
required_answer_value any The answer value(s) that make this question visible
operator string
Enum: equals, not_equals, contains, in, not_in

Partial Update

1
2
3
4
http \
  PATCH \
  https://api.example.com/api/checklists-admin-question-dependencies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.patched_question_dependency_request import PatchedQuestionDependencyRequest # (1)
from waldur_api_client.api.checklists_admin_question_dependencies import checklists_admin_question_dependencies_partial_update # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = PatchedQuestionDependencyRequest()
response = checklists_admin_question_dependencies_partial_update.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

print(response)
  1. Model Source: PatchedQuestionDependencyRequest
  2. API Source: checklists_admin_question_dependencies_partial_update
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { checklistsAdminQuestionDependenciesPartialUpdate } from 'waldur-js-client';

try {
  const response = await checklistsAdminQuestionDependenciesPartialUpdate({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)
Field Type Required Description
question string (uri)
depends_on_question string (uri)
required_answer_value any The answer value(s) that make this question visible
operator string
Enum: equals, not_equals, contains, in, not_in

200 -

Field Type Description
uuid string (uuid)
url string (uri)
question string (uri)
question_name string
depends_on_question string (uri)
depends_on_question_name string
required_answer_value any The answer value(s) that make this question visible
operator string
Enum: equals, not_equals, contains, in, not_in

Delete

1
2
3
4
http \
  DELETE \
  https://api.example.com/api/checklists-admin-question-dependencies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.checklists_admin_question_dependencies import checklists_admin_question_dependencies_destroy # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = checklists_admin_question_dependencies_destroy.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client
)

print(response)
  1. API Source: checklists_admin_question_dependencies_destroy
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { checklistsAdminQuestionDependenciesDestroy } from 'waldur-js-client';

try {
  const response = await checklistsAdminQuestionDependenciesDestroy({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)

204 - No response body