Skip to content

Latest commit

 

History

History
121 lines (92 loc) · 6.23 KB

README.md

File metadata and controls

121 lines (92 loc) · 6.23 KB

Ticketing

(Ticketing)

Overview

Available Operations

GetFieldMap

Retrieve field map for a ticketing project

Example Usage

package main

import(
	"firehydrant"
	"context"
	"log"
)

func main() {
    s := firehydrant.New(
        firehydrant.WithSecurity("<YOUR_API_KEY_HERE>"),
    )

    ctx := context.Background()
    res, err := s.Ticketing.GetFieldMap(ctx, "<id>", "<id>")
    if err != nil {
        log.Fatal(err)
    }
    if res.TicketingProjectFieldMapEntity != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
mapID string ✔️ N/A
ticketingProjectID string ✔️ N/A
opts []operations.Option The options for this request.

Response

*operations.GetTicketingProjectFieldMapResponse, error

Errors

Error Type Status Code Content Type
sdkerrors.BadRequest 400, 413, 414, 415, 422, 431, 510 application/json
sdkerrors.Unauthorized 401, 403, 407, 511 application/json
sdkerrors.NotFound 404, 501, 505 application/json
sdkerrors.Timeout 408, 504 application/json
sdkerrors.RateLimited 429 application/json
sdkerrors.InternalServerError 500, 502, 503, 506, 507, 508 application/json
sdkerrors.SDKError 4XX, 5XX */*

UpdateProjectConfig

Update configuration for a ticketing project

Example Usage

package main

import(
	"firehydrant"
	"context"
	"log"
)

func main() {
    s := firehydrant.New(
        firehydrant.WithSecurity("<YOUR_API_KEY_HERE>"),
    )

    ctx := context.Background()
    res, err := s.Ticketing.UpdateProjectConfig(ctx, "<id>", "<id>")
    if err != nil {
        log.Fatal(err)
    }
    if res.TicketingProjectConfigEntity != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
ticketingProjectID string ✔️ N/A
configID string ✔️ N/A
opts []operations.Option The options for this request.

Response

*operations.UpdateTicketingProjectConfigResponse, error

Errors

Error Type Status Code Content Type
sdkerrors.BadRequest 400, 413, 414, 415, 422, 431, 510 application/json
sdkerrors.Unauthorized 401, 403, 407, 511 application/json
sdkerrors.NotFound 404, 501, 505 application/json
sdkerrors.Timeout 408, 504 application/json
sdkerrors.RateLimited 429 application/json
sdkerrors.InternalServerError 500, 502, 503, 506, 507, 508 application/json
sdkerrors.SDKError 4XX, 5XX */*