{"id":19504664,"url":"https://github.com/tools4everbv/helloid-task-sa-target-topdesk-operatorupdate","last_synced_at":"2026-06-13T02:05:08.238Z","repository":{"id":217468476,"uuid":"729237004","full_name":"Tools4everBV/HelloID-Task-SA-Target-TOPdesk-OperatorUpdate","owner":"Tools4everBV","description":"TOPdesk - Operator update","archived":false,"fork":false,"pushed_at":"2025-11-17T13:56:21.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-11-17T15:24:23.458Z","etag":null,"topics":["delegated-form","powershell","product","service-automation","task","topdesk"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tools4everBV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-08T17:29:54.000Z","updated_at":"2025-11-17T13:55:59.000Z","dependencies_parsed_at":"2024-01-16T17:13:38.330Z","dependency_job_id":"dcb82119-04ae-4ae6-989a-34b85614f95f","html_url":"https://github.com/Tools4everBV/HelloID-Task-SA-Target-TOPdesk-OperatorUpdate","commit_stats":null,"previous_names":["tools4everbv/helloid-task-sa-target-topdesk-operatorupdate"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Tools4everBV/HelloID-Task-SA-Target-TOPdesk-OperatorUpdate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-OperatorUpdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-OperatorUpdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-OperatorUpdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-OperatorUpdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tools4everBV","download_url":"https://codeload.github.com/Tools4everBV/HelloID-Task-SA-Target-TOPdesk-OperatorUpdate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-OperatorUpdate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34269365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["delegated-form","powershell","product","service-automation","task","topdesk"],"created_at":"2024-11-10T22:26:42.036Z","updated_at":"2026-06-13T02:05:08.196Z","avatar_url":"https://github.com/Tools4everBV.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HelloID-Task-SA-Target-TOPdesk-OperatorUpdate\n\n## Prerequisites\n\n- [ ] TOPdesk API Username and Key\n- [ ] User-defined variables: `topdeskBaseUrl`, `topdeskApiUsername` and `topdeskApiSecret` created in your HelloID portal.\n\n## Description\n\nThis code snippet will update an existing operator within TOPdesk and executes the following tasks:\n\n1. Define a hash table `$formObject`. The keys of the hash table represent the properties necessary to update an existing operator within `TOPdesk`, while the values represent the values entered in the form.\n\n\u003e To view an example of the form output, please refer to the JSON code pasted below.\n\n```json\n{\n    \"id\": \"634206ca-6907-4914-8509-da55cfd8b35d\",\n    \"surName\": \"Doe\",\n    \"prefixes\": \"van der\",\n    \"firstName\": \"John\",\n    \"firstInitials\": \"J.J.\",\n    \"gender\": \"MALE\",\n    \"telephone\": \"0229123456\",\n    \"mobileNumber\": \"0612345678\",\n    \"employeeNumber\": \"12345678\",\n    \"email\": \"j.doe@enyoi.org\",\n    \"networkLoginName\": \"j.doe\",\n    \"loginName\": \"j.doe@enyoi.org\",\n    \"jobTitle\": \"Tester\",\n    \"branch\": {\n        \"id\": \"1fe19024-d652-46ec-b080-eec3737a3d7a\"\n    },\n    \"department\": {\n        \"id\": \"54a543bc-e8a3-425d-9c44-065b862b313e\"\n    },\n    \"loginPermission\": true\n}\n```\n\n\u003e :exclamation: It is important to note that the names of your form fields might differ. Ensure that the `$formObject` hash table is appropriately adjusted to match your form fields.\n\u003e [See the TOPdesk API Docs page](https://developers.topdesk.com/explorer/?page=supporting-files#/Operators/patchOperatorById)\n\n2. Creates authorization headers using the provided API key and secret.\n\n3. Update an existing operator using the: `Invoke-RestMethod` cmdlet. The hash table called: `$formObject` is passed to the body of the: `Invoke-RestMethod` cmdlet as a JSON object.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-topdesk-operatorupdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-topdesk-operatorupdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-topdesk-operatorupdate/lists"}