Skip to content

Call Proposal Project Role Mappings

Operations Summary

Method Endpoint Description
GET /api/call-proposal-project-role-mappings/ List Call Proposal Project Role Mappings
GET /api/call-proposal-project-role-mappings/{uuid}/ Retrieve
POST /api/call-proposal-project-role-mappings/ Create
PUT /api/call-proposal-project-role-mappings/{uuid}/ Update
PATCH /api/call-proposal-project-role-mappings/{uuid}/ Partial Update
DELETE /api/call-proposal-project-role-mappings/{uuid}/ Delete

List Call Proposal Project Role Mappings

1
2
3
4
http \
  GET \
  https://api.example.com/api/call-proposal-project-role-mappings/ \
  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.call_proposal_project_role_mappings import call_proposal_project_role_mappings_list # (1)

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

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

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

200 -

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

Field Type
url string (uri)
uuid string (uuid)
call string (uri)
call_uuid string (uuid)
call_name string
proposal_role string
project_role string

Retrieve

1
2
3
4
http \
  GET \
  https://api.example.com/api/call-proposal-project-role-mappings/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.call_proposal_project_role_mappings import call_proposal_project_role_mappings_retrieve # (1)

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

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

try {
  const response = await callProposalProjectRoleMappingsRetrieve({
  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
url string (uri)
uuid string (uuid)
call string (uri)
call_uuid string (uuid)
call_name string
proposal_role string
project_role string

Create

1
2
3
4
5
6
http \
  POST \
  https://api.example.com/api/call-proposal-project-role-mappings/ \
  Authorization:"Token YOUR_API_TOKEN" \
  call="https://api.example.com/api/call/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
  proposal_role="string-value"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.proposal_project_role_mapping_request import ProposalProjectRoleMappingRequest # (1)
from waldur_api_client.api.call_proposal_project_role_mappings import call_proposal_project_role_mappings_create # (2)

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

body_data = ProposalProjectRoleMappingRequest(
    call="https://api.example.com/api/call/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    proposal_role="string-value"
)
response = call_proposal_project_role_mappings_create.sync(
    client=client,
    body=body_data
)

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

try {
  const response = await callProposalProjectRoleMappingsCreate({
  auth: "Token YOUR_API_TOKEN",
  body: {
    "call": "https://api.example.com/api/call/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    "proposal_role": "string-value"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Field Type Required
call string (uri)
proposal_role string
project_role string

201 -

Field Type
url string (uri)
uuid string (uuid)
call string (uri)
call_uuid string (uuid)
call_name string
proposal_role string
project_role string

Update

1
2
3
4
5
6
http \
  PUT \
  https://api.example.com/api/call-proposal-project-role-mappings/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN" \
  call="https://api.example.com/api/call/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
  proposal_role="string-value"
 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.proposal_project_role_mapping_request import ProposalProjectRoleMappingRequest # (1)
from waldur_api_client.api.call_proposal_project_role_mappings import call_proposal_project_role_mappings_update # (2)

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

body_data = ProposalProjectRoleMappingRequest(
    call="https://api.example.com/api/call/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    proposal_role="string-value"
)
response = call_proposal_project_role_mappings_update.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

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

try {
  const response = await callProposalProjectRoleMappingsUpdate({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  },
  body: {
    "call": "https://api.example.com/api/call/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    "proposal_role": "string-value"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)
Field Type Required
call string (uri)
proposal_role string
project_role string

200 -

Field Type
url string (uri)
uuid string (uuid)
call string (uri)
call_uuid string (uuid)
call_name string
proposal_role string
project_role string

Partial Update

1
2
3
4
http \
  PATCH \
  https://api.example.com/api/call-proposal-project-role-mappings/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_proposal_project_role_mapping_request import PatchedProposalProjectRoleMappingRequest # (1)
from waldur_api_client.api.call_proposal_project_role_mappings import call_proposal_project_role_mappings_partial_update # (2)

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

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

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

try {
  const response = await callProposalProjectRoleMappingsPartialUpdate({
  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
call string (uri)
proposal_role string
project_role string

200 -

Field Type
url string (uri)
uuid string (uuid)
call string (uri)
call_uuid string (uuid)
call_name string
proposal_role string
project_role string

Delete

1
2
3
4
http \
  DELETE \
  https://api.example.com/api/call-proposal-project-role-mappings/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.call_proposal_project_role_mappings import call_proposal_project_role_mappings_destroy # (1)

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

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

try {
  const response = await callProposalProjectRoleMappingsDestroy({
  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