GSA / ITDB-schema

IT Dashboard submissions schema, documentation and example files.
18 stars 24 forks source link

[ITC Collect] Creates a Services resource. "{{baseUrl}}/v1/services" POST is not working with default PayLoad in Postman #453

Closed KellyHarrisT closed 2 years ago

KellyHarrisT commented 2 years ago

Testing of Post of endpoint /v1/services produces "Extra attributes not allowed" (See Below) Payload: { "currentUii": "018-000000123", "agency": "018", "title": "IT Collect Development", "description": "Sample description of the IT Dashboard modernization process.", "changeInStatus": "11", "changeInStatusDescription": "New Service", "previousUII": "018-000001234", "sharedServiceCode": "00", "sharedServiceId": "0024", "missionSupportCategory": [ "01" ], "bureauCode": "00", "partOfAITPS": "01", "standardIdCategory": "01", "missionSupportArea": "00", "investmentType": "01", "returnOnInvestment": "Sample description of a return on an investment.", "nssId": "01", "publicUrls": [ "https://example.gov" ], "isRetired": false, "rebaseLineId": "", "agencyId": "string" } Results in: { "@context": "/contexts/Error", "@type": "hydra:Error", "hydra:title": "ExtraAttributesException", "hydra:description": "Extra attributes are not allowed (\"currentUii\", \"missionSupportCategory\" are unknown)." }

rydougherty commented 2 years ago

Hi Kelly,

Thanks for reaching out. Please make the following changes in your submission file:

"currentUii": "018-000000123" -> "currentUII": "018-000000123" "missionSupportCategory": ["01"]-> "missionSupportCategories": ["01"]

KellyHarrisT commented 2 years ago

Hello,

Thank You for your response. I made the changes, now it gives me a 403.

Kelly

From: rydougherty @.> Sent: Wednesday, August 4, 2021 8:34 PM To: GSA/ITDB-schema @.> Cc: Harris, Kelly @.>; Author @.> Subject: Re: [GSA/ITDB-schema] [ITC Collect] Creates a Services resource. "{{baseUrl}}/v1/services" POST is not working with default PayLoad in Postman (#453)

Caution: External email. Pay attention to suspicious links and attachments. Send suspicious email to **@.*

Hi Kelly,

Thanks for reaching out. Please make the following changes in your submission file:

"currentUii": "018-000000123" -> "currentUII": "018-000000123" "missionSupportCategory": ["01"] -> "missionSupportCategories": ["01"]

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://hyperlink.services.treasury.gov/agency.do?origin=https://github.com/GSA/ITDB-schema/issues/453#issuecomment-893071874, or unsubscribehttps://hyperlink.services.treasury.gov/agency.do?origin=https://github.com/notifications/unsubscribe-auth/ALE6BHSWRBNGUD64GA6ENTTT3HL7LANCNFSM5BR2VHEA. Triage notifications on the go with GitHub Mobile for iOShttps://hyperlink.services.treasury.gov/agency.do?origin=https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://hyperlink.services.treasury.gov/agency.do?origin=https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

rydougherty commented 2 years ago

Hi Kelly - thanks for following up. The agency code and current uii values (018) in your submission file are associated with the Department of Education. Since your client id and credentials are associated with Treasury, you should use Treasury's (015) code:

KellyHarrisT commented 2 years ago

Thanks!

From: rydougherty @.> Sent: Thursday, August 5, 2021 2:55 PM To: GSA/ITDB-schema @.> Cc: Harris, Kelly @.>; Author @.> Subject: Re: [GSA/ITDB-schema] [ITC Collect] Creates a Services resource. "{{baseUrl}}/v1/services" POST is not working with default PayLoad in Postman (#453)

Caution: External email. Pay attention to suspicious links and attachments. Send suspicious email to **@.*

Hi Kelly - thanks for following up. The agency code and current uii values (018) in your submission file are associated with the Department of Education. Since your client id and credentials are associated with Treasury, you should use Treasury's (015) code:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://hyperlink.services.treasury.gov/agency.do?origin=https://github.com/GSA/ITDB-schema/issues/453#issuecomment-893701719, or unsubscribehttps://hyperlink.services.treasury.gov/agency.do?origin=https://github.com/notifications/unsubscribe-auth/ALE6BHSGETKW5LRKX25YPQ3T3LNA7ANCNFSM5BR2VHEA. Triage notifications on the go with GitHub Mobile for iOShttps://hyperlink.services.treasury.gov/agency.do?origin=https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://hyperlink.services.treasury.gov/agency.do?origin=https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.