All URIs are relative to https://<sub_domain>.api.kandji.io
Method | HTTP request | Description |
---|---|---|
createTag | POST /api/v1/tags | Create Tag |
deleteTag | DELETE /api/v1/tags/{tag_id} | Delete Tag |
getTags | GET /api/v1/tags | Get Tags |
updateTag | PATCH /api/v1/tags/{tag_id} | Update Tag |
open class func createTag(body: String? = nil, completion: @escaping (_ data: AnyCodable?, _ error: Error?) -> Void)
Create Tag
Create a tag. Can only create one tag per request.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk
let body = "body_example" // String | (optional)
// Create Tag
TagsAPI.createTag(body: body) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | String | [optional] |
AnyCodable
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func deleteTag(tagId: String, completion: @escaping (_ data: Void?, _ error: Error?) -> Void)
Delete Tag
Delete a tag.
tag_id
(path parameter): The unique identifier of the tag.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk
let tagId = "tagId_example" // String |
// Delete Tag
TagsAPI.deleteTag(tagId: tagId) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
tagId | String |
Void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getTags(search: String, completion: @escaping (_ data: AnyCodable?, _ error: Error?) -> Void)
Get Tags
Return configured tags.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk
let search = "search_example" // String | Return resultes containing a given tag search string.
// Get Tags
TagsAPI.getTags(search: search) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
search | String | Return resultes containing a given tag search string. |
AnyCodable
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func updateTag(tagId: String, body: String? = nil, completion: @escaping (_ data: AnyCodable?, _ error: Error?) -> Void)
Update Tag
Update tag name.
tag_id
(path parameter): The unique identifier of the tag.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk
let tagId = "tagId_example" // String |
let body = "body_example" // String | (optional)
// Update Tag
TagsAPI.updateTag(tagId: tagId, body: body) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
tagId | String | ||
body | String | [optional] |
AnyCodable
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]