TOSS
  1. Pelatihan
TOSS
  • Gambaran Umum
  • Autentikasi
  • Referensi Data
  • Endpoint API
    • Lembaga
      • Put Institution
      • Find Institution
      • Delete Institution
    • Pelatihan
      • Put Training
        PUT
      • Find Training
        GET
      • Delete Training
        DELETE
  1. Pelatihan

Put Training

Testing
PUT
{{base_url}}/api/v1/trainings/{id}
API ini digunakan untuk membuat atau memperbarui data pelatihan berdasarkan ID yang diberikan. Jika ID sudah ada, data pelatihan yang sesuai akan diperbarui. Jika tidak ada pelatihan dengan ID tersebut, API akan membuat pelatihan baru dengan data yang diberikan. API ini dirancang agar dapat diakses (dihit) berulang kali, memungkinkan pembaruan data pelatihan secara berkala atau berulang untuk memastikan informasi tetap terkini.

Request

Path Params

Header Params

Body Params application/json

Example
{
    "title": "Social Media Marketing",
    "description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
    "address": null,
    "region": {
        "type": "city",
        "id": "73c670c2-bd42-491a-a76b-f17c2edb6680"
    },
    "media": "online",
    "difficulty_level": "beginner",
    "price": 250000,
    "certified": true,
    "bnsp_certified": false,
    "quota": 10,
    "expired_date": "2025-02-28",
    "start_date": "2025-03-01",
    "finish_date": "2025-05-31",
    "cover_uri": "https://kemnaker-dev.kemnaker.go.id/kelembagaan/institution_pictures/da59aa44-e013-4292-a6da-6b99c6b5c732/62e5104925f6d.jpg",
    "sub_vocational": "855070b6-e8a6-40ec-84bd-70c8a34c2be9",
    "status": "open",
    "client_url": "https://www.komdigi.go.id/",
    "institution": {
        "id": "d34ba41d-7d6a-44f3-ad9e-662cac011861",
        "region": {
            "type": "city",
            "id": "73c670c2-bd42-491a-a76b-f17c2edb6680",
            "country_code": null
        },
        "name": "KEMNAKER TESTING",
        "address": "Gedung Semanggi Square, Jl. Semanggi Raya No.1A, RT.1/RW.5, Semanggi, Kec. Karet, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 12850",
        "phone": "081213956825",
        "email": null,
        "logo_uri": "https://kemnaker-dev.kemnaker.go.id/kelembagaan/institution_logos/f38a8e36-05b9-44b9-8de3-a44478ab8265/632e66cc5f233.png"
    },
    "competencies": [
        "Marketing",
        "Communication"
    ],
    "instructors": [
        {
            "name": "Test",
            "email": "abc@gmail.com",
            "photo_url": "https://kemnaker-dev.kemnaker.go.id/kelembagaan/institution_logos/f38a8e36-05b9-44b9-8de3-a44478ab8265/632e66cc5f233.png",
            "resume_url": null
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'https://toss.kemnaker.go.id/api/v1/trainings/9e026c9e-0d8a-4c42-979c-989dde40d40c' \
--header 'Client-Id;' \
--header 'Request-Id;' \
--header 'Request-Timestamp;' \
--header 'Signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "Social Media Marketing",
    "description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry'\''s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
    "address": null,
    "region": {
        "type": "city",
        "id": "73c670c2-bd42-491a-a76b-f17c2edb6680"
    },
    "media": "online",
    "difficulty_level": "beginner",
    "price": 250000,
    "certified": true,
    "bnsp_certified": false,
    "quota": 10,
    "expired_date": "2025-02-28",
    "start_date": "2025-03-01",
    "finish_date": "2025-05-31",
    "cover_uri": "https://kemnaker-dev.kemnaker.go.id/kelembagaan/institution_pictures/da59aa44-e013-4292-a6da-6b99c6b5c732/62e5104925f6d.jpg",
    "sub_vocational": "855070b6-e8a6-40ec-84bd-70c8a34c2be9",
    "status": "open",
    "client_url": "https://www.komdigi.go.id/",
    "institution": {
        "id": "d34ba41d-7d6a-44f3-ad9e-662cac011861",
        "region": {
            "type": "city",
            "id": "73c670c2-bd42-491a-a76b-f17c2edb6680",
            "country_code": null
        },
        "name": "KEMNAKER TESTING",
        "address": "Gedung Semanggi Square, Jl. Semanggi Raya No.1A, RT.1/RW.5, Semanggi, Kec. Karet, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 12850",
        "phone": "081213956825",
        "email": null,
        "logo_uri": "https://kemnaker-dev.kemnaker.go.id/kelembagaan/institution_logos/f38a8e36-05b9-44b9-8de3-a44478ab8265/632e66cc5f233.png"
    },
    "competencies": [
        "Marketing",
        "Communication"
    ],
    "instructors": [
        {
            "name": "Test",
            "email": "abc@gmail.com",
            "photo_url": "https://kemnaker-dev.kemnaker.go.id/kelembagaan/institution_logos/f38a8e36-05b9-44b9-8de3-a44478ab8265/632e66cc5f233.png",
            "resume_url": null
        }
    ]
}'

Responses

🟢200Success
application/json
Body

Example
{
    "data": {
        "id": "348178eb-1917-4a4b-adc1-37864baad97a",
        "reference": "088738e6-d1ab-46fd-a11e-c357d5159eeb",
        "title": "Social Media Marketing",
        "created_at": "2025-01-17 02:35:19"
    },
    "meta": {
        "client_ip": "10.233.79.152",
        "hostname": "toss-backend-api-98d6cf864-2fctc",
        "version": "v1"
    }
}
Modified at 2025-01-24 09:15:02
Previous
Delete Institution
Next
Find Training
Built with