{"_id":"59cd88320f8ac1003c3e555d","project":"55773a5ba042551900b002cb","version":{"_id":"55773a5ba042551900b002ce","project":"55773a5ba042551900b002cb","__v":18,"createdAt":"2015-06-09T19:11:23.764Z","releaseDate":"2015-06-09T19:11:23.764Z","categories":["55773a5ca042551900b002cf","55773a6ce6063e0d00481380","55773ab007e7110d001043ec","55773abaa042551900b002d5","55773ac207e7110d001043ed","55773acb07e7110d001043ee","55773ad3a042551900b002d6","55773adce6063e0d00481383","55773ae4a042551900b002d7","55773af307e7110d001043ef","55773af907e7110d001043f0","55773b0407e7110d001043f1","563a4f7ad25e8919005f3f39","563a4fcaa19edf0d00972321","564a70dc4cd0521700523edf","564b797bcc472d0d00da9435","564b855b766d4923004e1fd1","59cd4b81935249001c77c48e"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Motherboard","version_clean":"1.0.0","version":"1"},"category":{"_id":"59cd4b81935249001c77c48e","project":"55773a5ba042551900b002cb","version":"55773a5ba042551900b002ce","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-09-28T19:20:33.950Z","from_sync":false,"order":14,"slug":"officials-api","title":"Officials API"},"user":"546d17e2eb9cfd1400dd4529","__v":1,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-09-28T23:39:30.630Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"put","examples":{"codes":[]},"results":{"codes":[{"name":"","code":"{\n   \"code\":200,\n   \"status\":\"success\",\n   \"data\":[\n      {\n         \"official_id\":123456,\n         \"official_title\":\"Technical Official\",\n         \"official_first\":\"Technical\",\n         \"official_last\":\"Official\",\n         \"official_gender\":\"female\",\n         \"official_noc\":\"GRE\",\n         \"official_year_of_birth\":1990,\n         \"official_certificate_year\":2008,\n         \"official_level\":3,\n         \"official_itu_id\":654321,\n         \"official_slug\":\"technical_official\",\n         \"official_country_id\":172,\n         \"official_country_name\":\"Greece\",\n         \"official_country_isoa2\":\"GR\",\n         \"official_region_id\":10,\n         \"official_region\":\"ETU\",\n         \"official_region_name\":\"Europe\",\n         \"official_flag\":\"https://f9ca11ef49c28681fc01-0acbf57e00c47a50e70a1acb89e86c89.ssl.cf1.rackcdn.com/images/icons/gr.png\",\n         \"official_api_listing\":\"https://api.triathlon.org/v1/officials/123456\",\n         \"official_valid_date\":2019\n      }\n   ]\n}","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"5a0b4f466ea2db003a3fde89","ref":"","in":"path","required":true,"desc":"The official_id of the official to be edited","default":"","type":"int","name":"official_id"},{"_id":"5a0b4f466ea2db003a3fde88","ref":"","in":"body","required":false,"desc":"A json encoded object of key=>vaue pairs for updating","default":"","type":"object","name":"body"}],"url":"/officials/{official_id}"},"isReference":false,"order":4,"body":"[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"Method checks the authenticated user is authorized to edit the resource\",\n  \"body\": \"Unauthorized users will be returned a 401 unauthorized response when attempting to update officials they do not have ownership of.\"\n}\n[/block]\nThe **Edit Official** method allows editing of an athlete profile and returns a basic official object of the edited official.","excerpt":"","slug":"edit-official","type":"endpoint","title":"Edit Official"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

official_id:
required
integer
The official_id of the official to be edited

Body Params

body:
object
A json encoded object of key=>vaue pairs for updating

Result Format


Documentation

[block:callout] { "type": "danger", "title": "Method checks the authenticated user is authorized to edit the resource", "body": "Unauthorized users will be returned a 401 unauthorized response when attempting to update officials they do not have ownership of." } [/block] The **Edit Official** method allows editing of an athlete profile and returns a basic official object of the edited official.

User Information

Try It Out

put
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}