{"id":19504683,"url":"https://github.com/tools4everbv/helloid-task-sa-target-topdesk-incidentarchive","last_synced_at":"2025-10-12T05:42:49.565Z","repository":{"id":217468289,"uuid":"729286746","full_name":"Tools4everBV/HelloID-Task-SA-Target-TOPdesk-IncidentArchive","owner":"Tools4everBV","description":"TOPdesk - Incident archive","archived":false,"fork":false,"pushed_at":"2024-01-16T10:51:16.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-25T22:11:54.888Z","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-08T20:12:40.000Z","updated_at":"2024-01-09T09:37:26.000Z","dependencies_parsed_at":"2024-01-16T17:12:40.714Z","dependency_job_id":"fe509389-2a5d-45fb-939e-576e3b4f555b","html_url":"https://github.com/Tools4everBV/HelloID-Task-SA-Target-TOPdesk-IncidentArchive","commit_stats":null,"previous_names":["tools4everbv/helloid-task-sa-target-topdesk-incidentarchive"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Tools4everBV/HelloID-Task-SA-Target-TOPdesk-IncidentArchive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-IncidentArchive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-IncidentArchive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-IncidentArchive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-IncidentArchive/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-IncidentArchive/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-IncidentArchive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010328,"owners_count":26084738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"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:44.596Z","updated_at":"2025-10-12T05:42:49.519Z","avatar_url":"https://github.com/Tools4everBV.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HelloID-Task-SA-Target-TOPdesk-IncidentArchive\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 archive an incident 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 archive an incident 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\": \"6253ec7d-17ae-416e-925b-8a11897401c5\",\n    \"archivingReasonId\" : \"73736b19-a69e-5e6b-b6af-ddc655fead0c\"\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=incident#/incident/post_incidents)\n\n2. Creates authorization headers using the provided API key and secret.\n\n3. Archive an incident 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-incidentarchive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-topdesk-incidentarchive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-topdesk-incidentarchive/lists"}