Project Credits
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/project-credits/ |
List Project Credits |
| GET | /api/project-credits/{uuid}/ |
Retrieve |
| POST | /api/project-credits/ |
Create |
| PUT | /api/project-credits/{uuid}/ |
Update |
| PATCH | /api/project-credits/{uuid}/ |
Partial Update |
| DELETE | /api/project-credits/{uuid}/ |
Delete |
List Project Credits
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
project_credits_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
customer_name |
string | |
customer_slug |
string | |
customer_uuid |
string (uuid) | |
o |
array | Ordering |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
project_name |
string | |
project_uuid |
string (uuid) |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
value |
string (decimal) |
project |
string (uri) |
project_name |
string |
project_uuid |
string (uuid) |
project_slug |
string |
customer_name |
string |
customer_slug |
string |
customer_uuid |
string (uuid) |
customer_credit |
string (decimal) |
allocated_customer_credit |
number (double) |
consumption_last_month |
number (double) |
offerings |
array of objects |
offerings.uuid |
string (uuid) |
offerings.url |
string (uri) |
offerings.type |
string |
offerings.name |
string |
end_date |
string (date) |
expected_consumption |
string (decimal) |
minimal_consumption |
number (double) |
minimal_consumption_logic |
string |
grace_coefficient |
string (decimal) |
apply_as_minimal_consumption |
boolean |
mark_unused_credit_as_spent_on_project_termination |
boolean |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
project_credits_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
value |
string (decimal) |
project |
string (uri) |
project_name |
string |
project_uuid |
string (uuid) |
project_slug |
string |
customer_name |
string |
customer_slug |
string |
customer_uuid |
string (uuid) |
customer_credit |
string (decimal) |
allocated_customer_credit |
number (double) |
consumption_last_month |
number (double) |
offerings |
array of objects |
offerings.uuid |
string (uuid) |
offerings.url |
string (uri) |
offerings.type |
string |
offerings.name |
string |
end_date |
string (date) |
expected_consumption |
string (decimal) |
minimal_consumption |
number (double) |
minimal_consumption_logic |
string |
grace_coefficient |
string (decimal) |
apply_as_minimal_consumption |
boolean |
mark_unused_credit_as_spent_on_project_termination |
boolean |
Create
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
- Model Source:
ProjectCreditRequest - API Source:
project_credits_create
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Field | Type | Required |
|---|---|---|
value |
string (decimal) | |
project |
string (uri) | ✓ |
end_date |
string (date) | |
expected_consumption |
string (decimal) | |
minimal_consumption_logic |
string | |
grace_coefficient |
string (decimal) | |
apply_as_minimal_consumption |
boolean | |
mark_unused_credit_as_spent_on_project_termination |
boolean |
201 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
value |
string (decimal) |
project |
string (uri) |
project_name |
string |
project_uuid |
string (uuid) |
project_slug |
string |
customer_name |
string |
customer_slug |
string |
customer_uuid |
string (uuid) |
customer_credit |
string (decimal) |
allocated_customer_credit |
number (double) |
consumption_last_month |
number (double) |
offerings |
array of objects |
offerings.uuid |
string (uuid) |
offerings.url |
string (uri) |
offerings.type |
string |
offerings.name |
string |
end_date |
string (date) |
expected_consumption |
string (decimal) |
minimal_consumption |
number (double) |
minimal_consumption_logic |
string |
grace_coefficient |
string (decimal) |
apply_as_minimal_consumption |
boolean |
mark_unused_credit_as_spent_on_project_termination |
boolean |
Update
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
ProjectCreditRequest - API Source:
project_credits_update
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
value |
string (decimal) | |
project |
string (uri) | ✓ |
end_date |
string (date) | |
expected_consumption |
string (decimal) | |
minimal_consumption_logic |
string | |
grace_coefficient |
string (decimal) | |
apply_as_minimal_consumption |
boolean | |
mark_unused_credit_as_spent_on_project_termination |
boolean |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
value |
string (decimal) |
project |
string (uri) |
project_name |
string |
project_uuid |
string (uuid) |
project_slug |
string |
customer_name |
string |
customer_slug |
string |
customer_uuid |
string (uuid) |
customer_credit |
string (decimal) |
allocated_customer_credit |
number (double) |
consumption_last_month |
number (double) |
offerings |
array of objects |
offerings.uuid |
string (uuid) |
offerings.url |
string (uri) |
offerings.type |
string |
offerings.name |
string |
end_date |
string (date) |
expected_consumption |
string (decimal) |
minimal_consumption |
number (double) |
minimal_consumption_logic |
string |
grace_coefficient |
string (decimal) |
apply_as_minimal_consumption |
boolean |
mark_unused_credit_as_spent_on_project_termination |
boolean |
Partial Update
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
PatchedProjectCreditRequest - API Source:
project_credits_partial_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
value |
string (decimal) | |
project |
string (uri) | |
end_date |
string (date) | |
expected_consumption |
string (decimal) | |
minimal_consumption_logic |
string | |
grace_coefficient |
string (decimal) | |
apply_as_minimal_consumption |
boolean | |
mark_unused_credit_as_spent_on_project_termination |
boolean |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
value |
string (decimal) |
project |
string (uri) |
project_name |
string |
project_uuid |
string (uuid) |
project_slug |
string |
customer_name |
string |
customer_slug |
string |
customer_uuid |
string (uuid) |
customer_credit |
string (decimal) |
allocated_customer_credit |
number (double) |
consumption_last_month |
number (double) |
offerings |
array of objects |
offerings.uuid |
string (uuid) |
offerings.url |
string (uri) |
offerings.type |
string |
offerings.name |
string |
end_date |
string (date) |
expected_consumption |
string (decimal) |
minimal_consumption |
number (double) |
minimal_consumption_logic |
string |
grace_coefficient |
string (decimal) |
apply_as_minimal_consumption |
boolean |
mark_unused_credit_as_spent_on_project_termination |
boolean |
Delete
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
project_credits_destroy
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
204 - No response body