Time And Material Attachment
Description
Return a list of all Time and Material attachments for the specified Project user has access to.
Header Parameters
Procore-Company-Idinteger*
Unique company identifier associated with the Procore User Account.
Path Parameters
project_idinteger*
Unique identifier for the project.
1const request = require('request');
2
3const options = {
4 method: 'GET',
5 url: 'https://api.procore.com/rest/v1.0/projects/%7Bproject_id%7D/time_and_material_entry_attachments'
6};
7
8request(options, function (error, response, body) {
9 if (error) throw new Error(error);
10
11 console.log(body);
12});
13
Responses
Body
idinteger
ID
attachment_idinteger
ID of the associated prostore file
content_typestring
Content type
presentation_urlstring
URL
urlstring
URL
thumbnail_urlstring
URL
filenamestring
Filename of Time and Material Entry Attachment
Response Headers
Per-Pageinteger
Number of items retrieved per page
Totalinteger
Total number of items to be retrieved
Linkstring
Link headers for the first, prev, next, and last link
1[
2 {
3 "id": 1200,
4 "attachment_id": 1233,
5 "content_type": "image/jpeg",
6 "presentation_url": "http://www.example.com/presentation_url",
7 "url": "http://www.example.com/",
8 "thumbnail_url": "http://www.example.com/thumbnail_url",
9 "filename": "Example Filename"
10 }
11]
Description
Create a new attachment
Changelog
Date | Category | Breaking | Summary |
---|---|---|---|
Jun 15 2021 | New | Added create endpoint for project Time and Material Entry attachments |
Header Parameters
Procore-Company-Idinteger*
Unique company identifier associated with the Procore User Account.
Path Parameters
project_idinteger*
Unique identifier for the project.
1const request = require('request');
2
3const options = {
4 method: 'POST',
5 url: 'https://api.procore.com/rest/v1.0/projects/%7Bproject_id%7D/time_and_material_entry_attachments',
6 headers: {'content-type': 'application/json'},
7 body: {
8 time_and_material_entry_id: 13,
9 time_and_material_entry_attachment: {documents: [65], folders: [66], upload_uuids: [67]}
10 },
11 json: true
12};
13
14request(options, function (error, response, body) {
15 if (error) throw new Error(error);
16
17 console.log(body);
18});
19
Body Parameters
Body
time_and_material_entry_idinteger*
Time & Material Id the attachment is associated with
time_and_material_entry_attachmentobject*
1{
2 "time_and_material_entry_id": 13,
3 "time_and_material_entry_attachment": {
4 "documents": [
5 65
6 ],
7 "folders": [
8 66
9 ],
10 "upload_uuids": [
11 67
12 ]
13 }
14}
Responses
Body
idinteger
ID
attachment_idinteger
ID of the associated prostore file
content_typestring
Content type
presentation_urlstring
URL
urlstring
URL
thumbnail_urlstring
URL
filenamestring
Filename of Time and Material Entry Attachment
1{
2 "id": 1200,
3 "attachment_id": 1233,
4 "content_type": "image/jpeg",
5 "presentation_url": "http://www.example.com/presentation_url",
6 "url": "http://www.example.com/",
7 "thumbnail_url": "http://www.example.com/thumbnail_url",
8 "filename": "Example Filename"
9}
Description
Return detailed information about a specific time and material attachment
Changelog
Date | Category | Breaking | Summary |
---|---|---|---|
Jun 15 2021 | New | Added show endpoint for an individual project Time and Material Entry attachment | |
Jun 15 2021 | New | Added show endpoint for all project Time and Material Entry attachments |
Header Parameters
Procore-Company-Idinteger*
Unique company identifier associated with the Procore User Account.
Path Parameters
project_idinteger*
Unique identifier for the project.
idinteger*
ID of the time and material attachment
1const request = require('request');
2
3const options = {
4 method: 'GET',
5 url: 'https://api.procore.com/rest/v1.0/projects/%7Bproject_id%7D/time_and_material_entry_attachments/%7Bid%7D'
6};
7
8request(options, function (error, response, body) {
9 if (error) throw new Error(error);
10
11 console.log(body);
12});
13
Responses
Body
idinteger
ID
attachment_idinteger
ID of the associated prostore file
content_typestring
Content type
presentation_urlstring
URL
urlstring
URL
thumbnail_urlstring
URL
filenamestring
Filename of Time and Material Entry Attachment
1{
2 "id": 1200,
3 "attachment_id": 1233,
4 "content_type": "image/jpeg",
5 "presentation_url": "http://www.example.com/presentation_url",
6 "url": "http://www.example.com/",
7 "thumbnail_url": "http://www.example.com/thumbnail_url",
8 "filename": "Example Filename"
9}
Description
Deleting a Time and Material Attachment from a specified Project
Changelog
Date | Category | Breaking | Summary |
---|---|---|---|
Jun 15 2021 | New | Added destroy endpoint for Project Time and Material Entry attachments |
Header Parameters
Procore-Company-Idinteger*
Unique company identifier associated with the Procore User Account.
Path Parameters
project_idinteger*
Unique identifier for the project.
idinteger*
ID of the time and material attachment
idinteger*
ID of the Time and Material Attachment
1const request = require('request');
2
3const options = {
4 method: 'DELETE',
5 url: 'https://api.procore.com/rest/v1.0/projects/%7Bproject_id%7D/time_and_material_entry_attachments/%7Bid%7D'
6};
7
8request(options, function (error, response, body) {
9 if (error) throw new Error(error);
10
11 console.log(body);
12});
13
Responses
Body
idinteger
ID
attachment_idinteger
ID of the associated prostore file
content_typestring
Content type
presentation_urlstring
URL
urlstring
URL
thumbnail_urlstring
URL
filenamestring
Filename of Time and Material Entry Attachment
1{
2 "id": 1200,
3 "attachment_id": 1233,
4 "content_type": "image/jpeg",
5 "presentation_url": "http://www.example.com/presentation_url",
6 "url": "http://www.example.com/",
7 "thumbnail_url": "http://www.example.com/thumbnail_url",
8 "filename": "Example Filename"
9}
Description
Delete multiple Time and Material Attachments with one request.
Changelog
Date | Category | Breaking | Summary |
---|---|---|---|
Jun 15 2021 | New | Added bulk destroy endpoint for project Time and Material Entry attachments |
Header Parameters
Procore-Company-Idinteger*
Unique company identifier associated with the Procore User Account.
Path Parameters
project_idinteger*
Unique identifier for the project.
1const request = require('request');
2
3const options = {
4 method: 'DELETE',
5 url: 'https://api.procore.com/rest/v1.0/projects/%7Bproject_id%7D/time_and_material_entry_attachments/bulk_destroy',
6 headers: {'content-type': 'application/json'},
7 body: {
8 time_and_material_entry_attachment: {time_and_material_entry_attachment_ids: [65]}
9 },
10 json: true
11};
12
13request(options, function (error, response, body) {
14 if (error) throw new Error(error);
15
16 console.log(body);
17});
18
Body Parameters
Body
time_and_material_entry_attachmentobject*
Time and Material Attachment Object
1{
2 "time_and_material_entry_attachment": {
3 "time_and_material_entry_attachment_ids": [
4 65
5 ]
6 }
7}
Responses
Body
idinteger
ID
attachment_idinteger
ID of the associated prostore file
content_typestring
Content type
presentation_urlstring
URL
urlstring
URL
thumbnail_urlstring
URL
filenamestring
Filename of Time and Material Entry Attachment
1[
2 {
3 "id": 1200,
4 "attachment_id": 1233,
5 "content_type": "image/jpeg",
6 "presentation_url": "http://www.example.com/presentation_url",
7 "url": "http://www.example.com/",
8 "thumbnail_url": "http://www.example.com/thumbnail_url",
9 "filename": "Example Filename"
10 }
11]