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
Retrieve
Create
| 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)
|
- Model Source:
QuestionDependencyRequest
- 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
| 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)
|
- Model Source:
QuestionDependencyRequest
- 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
| 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)
|
- Model Source:
PatchedQuestionDependencyRequest
- 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